mirror of
https://github.com/BetterSEQTA/BetterSEQTA-Plus.git
synced 2026-06-06 03:34:40 +00:00
remove unused code + add listeners for selectedTheme
This commit is contained in:
Binary file not shown.
|
Before Width: | Height: | Size: 591 KiB |
@@ -1,11 +0,0 @@
|
|||||||
import hacker from './themeCovers/hacker.jpeg'
|
|
||||||
|
|
||||||
const themes = [
|
|
||||||
{
|
|
||||||
name: "Hacker",
|
|
||||||
url: "https://raw.githubusercontent.com/BetterSEQTA/BetterSEQTA-Themes/main/themes/hacker.json",
|
|
||||||
coverImage: <img className="object-cover object-center w-full h-full" src={hacker} />,
|
|
||||||
},
|
|
||||||
];
|
|
||||||
|
|
||||||
export default themes;
|
|
||||||
@@ -83,9 +83,7 @@ export default class StorageListener {
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case 'theme':
|
case 'theme':
|
||||||
if (changes.theme.newValue === '' && changes.theme.oldValue !== '') {
|
console.log(changes.theme.newValue)
|
||||||
document.querySelector('iframe#background')?.remove();
|
|
||||||
} else if (changes.theme.newValue !== '' && changes.theme.oldValue === '') appendBackgroundToUI();
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
|||||||
Reference in New Issue
Block a user