diff --git a/mods/oxide.theme.js b/mods/oxide.theme.js index 2d1f5133..9648d6c3 100644 --- a/mods/oxide.theme.js +++ b/mods/oxide.theme.js @@ -1,9 +1,10 @@ // Oxide.theme.js +let hasAppliedTheme = false; runAfterReset(function applyTheme() { // Only run once - const index = runAfterResetList.findIndex(fn => fn.name === "applyTheme"); - if (index !== -1) runAfterResetList.splice(index, 1); + if (hasAppliedTheme) return; + hasAppliedTheme = true; const css = ` :root { @@ -38,6 +39,8 @@ runAfterReset(function applyTheme() { document .getElementById('extraInfo') .querySelectorAll('*') - .forEach(el => {el.style.color = '#66AC92'; el.style.backgrounda = 'none';}); - + .forEach(el => { + el.style.color = '#66AC92'; + el.style.background = 'none'; + }); });