Refactor build workflow to use 'marvinpinto/action-automatic-releases' for updating twilight tag

This commit is contained in:
mauro-balades
2024-10-06 10:59:05 +02:00
parent 09f673d94c
commit c5ab69f38d
2 changed files with 5 additions and 11 deletions

View File

@@ -113,7 +113,7 @@ var ZenThemeModifier = {
},
_getThemedAvatar(avatarPath) {
if (!avatarPath.startsWith('chrome://browser/content/zen-avatars/avatar-') || !avatarPath.endsWith('.svg')) {
if (!avatarPath || !avatarPath.startsWith('chrome://browser/content/zen-avatars/avatar-') || !avatarPath.endsWith('.svg')) {
return avatarPath;
}
let withoutExtension = avatarPath.slice(0, -4);