hacky solution deployed

This commit is contained in:
Crazypersonalph
2023-12-05 12:51:10 +08:00
parent f64d0ac042
commit 8466d1e20d
2 changed files with 3 additions and 9 deletions
@@ -23,7 +23,6 @@ const ThemeSelector = ({ selectedType, setSelectedType, isEditMode }: ThemeSelec
useEffect(() => {
const initializeThemes = async () => {
const downloaded = (await listThemes());
const initializedThemes = themesList.map(theme => ({
...theme,
isDownloaded: downloaded.themes.includes(theme.name),
+3 -8
View File
@@ -688,7 +688,7 @@ export function tryLoad() {
true,
);
const observer = new MutationObserver(() => { documentTextColor() })
observer.observe(document.getElementById('toolbar')!, { attributes: true, childList: true, subtree: true })
observer.observe(document!, { attributes: true, childList: true, subtree: true, attributeFilter: ['td'], })
}
function ChangeMenuItemPositions(storage: any) {
@@ -778,16 +778,11 @@ function main(storedSetting: any) {
if (onoff) {
console.log('[BetterSEQTA+] Enabled');
initialize();
if (!isChrome || isChrome === 'undefined') {
tryLoad();
}
tryLoad();
window.addEventListener('load', tryLoad);
} else {
if (!isChrome || isChrome === 'undefined') {
handleDisabled();
}
handleDisabled()
window.addEventListener('load', handleDisabled);
}
}