mirror of
https://github.com/BetterSEQTA/BetterSEQTA-Plus.git
synced 2026-06-05 19:24:39 +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;
|
||||
|
||||
case 'theme':
|
||||
if (changes.theme.newValue === '' && changes.theme.oldValue !== '') {
|
||||
document.querySelector('iframe#background')?.remove();
|
||||
} else if (changes.theme.newValue !== '' && changes.theme.oldValue === '') appendBackgroundToUI();
|
||||
console.log(changes.theme.newValue)
|
||||
break;
|
||||
|
||||
default:
|
||||
|
||||
Reference in New Issue
Block a user