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