mirror of
https://github.com/BetterSEQTA/BetterSEQTA-Plus.git
synced 2026-06-06 11:44:40 +00:00
refactor: remove unused code
This commit is contained in:
@@ -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;
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user