From fc6c2d77858bd0b4191e933bff0a0b71764b3da8 Mon Sep 17 00:00:00 2001 From: SethBurkart123 Date: Fri, 9 Feb 2024 18:24:11 +1100 Subject: [PATCH] refactor: remove unused code --- src/seqta/utils/StorageListener.ts | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/seqta/utils/StorageListener.ts b/src/seqta/utils/StorageListener.ts index 5d6dc10a..33e26cbe 100644 --- a/src/seqta/utils/StorageListener.ts +++ b/src/seqta/utils/StorageListener.ts @@ -86,15 +86,10 @@ export default class StorageListener { case 'theme': if (changes.theme.newValue === '' && changes.theme.oldValue !== '') { document.querySelector('iframe#background')?.remove(); - } else if (changes.theme.newValue !== '' && changes.theme.oldValue === '') { - appendBackgroundToUI(); - } - + } else if (changes.theme.newValue !== '' && changes.theme.oldValue === '') appendBackgroundToUI(); break; - // Add default case if you need to handle a case where changeKey does not match any case default: - // Handle unknown changeKey if necessary break; } });