mirror of
https://github.com/BetterSEQTA/BetterSEQTA-Plus.git
synced 2026-06-06 03:34:40 +00:00
refactor: remove unused code
This commit is contained in:
@@ -86,15 +86,10 @@ export default class StorageListener {
|
|||||||
case 'theme':
|
case 'theme':
|
||||||
if (changes.theme.newValue === '' && changes.theme.oldValue !== '') {
|
if (changes.theme.newValue === '' && changes.theme.oldValue !== '') {
|
||||||
document.querySelector('iframe#background')?.remove();
|
document.querySelector('iframe#background')?.remove();
|
||||||
} else if (changes.theme.newValue !== '' && changes.theme.oldValue === '') {
|
} else if (changes.theme.newValue !== '' && changes.theme.oldValue === '') appendBackgroundToUI();
|
||||||
appendBackgroundToUI();
|
|
||||||
}
|
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
// Add default case if you need to handle a case where changeKey does not match any case
|
|
||||||
default:
|
default:
|
||||||
// Handle unknown changeKey if necessary
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user