mirror of
https://github.com/BetterSEQTA/BetterSEQTA-Plus.git
synced 2026-06-06 03:34:40 +00:00
hacky solution deployed
This commit is contained in:
@@ -23,7 +23,6 @@ const ThemeSelector = ({ selectedType, setSelectedType, isEditMode }: ThemeSelec
|
|||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
const initializeThemes = async () => {
|
const initializeThemes = async () => {
|
||||||
const downloaded = (await listThemes());
|
const downloaded = (await listThemes());
|
||||||
|
|
||||||
const initializedThemes = themesList.map(theme => ({
|
const initializedThemes = themesList.map(theme => ({
|
||||||
...theme,
|
...theme,
|
||||||
isDownloaded: downloaded.themes.includes(theme.name),
|
isDownloaded: downloaded.themes.includes(theme.name),
|
||||||
|
|||||||
+3
-8
@@ -688,7 +688,7 @@ export function tryLoad() {
|
|||||||
true,
|
true,
|
||||||
);
|
);
|
||||||
const observer = new MutationObserver(() => { documentTextColor() })
|
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) {
|
function ChangeMenuItemPositions(storage: any) {
|
||||||
@@ -778,16 +778,11 @@ function main(storedSetting: any) {
|
|||||||
if (onoff) {
|
if (onoff) {
|
||||||
console.log('[BetterSEQTA+] Enabled');
|
console.log('[BetterSEQTA+] Enabled');
|
||||||
initialize();
|
initialize();
|
||||||
|
tryLoad();
|
||||||
if (!isChrome || isChrome === 'undefined') {
|
|
||||||
tryLoad();
|
|
||||||
}
|
|
||||||
|
|
||||||
window.addEventListener('load', tryLoad);
|
window.addEventListener('load', tryLoad);
|
||||||
} else {
|
} else {
|
||||||
if (!isChrome || isChrome === 'undefined') {
|
handleDisabled()
|
||||||
handleDisabled();
|
|
||||||
}
|
|
||||||
window.addEventListener('load', handleDisabled);
|
window.addEventListener('load', handleDisabled);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user