diff --git a/src/main.js b/src/main.js index 0ae112a..1e5a6c0 100644 --- a/src/main.js +++ b/src/main.js @@ -1,8 +1,3 @@ -const showChangePaletteButton = function () { - const style = document.getElementById('palette-override'); - if (style) style.remove(); -}; - const paletteData = fetch(browser.runtime.getURL('/paletteData.json')).then(response => response.json()); const setCssVariable = ([property, value]) => document.documentElement.style.setProperty(`--${property}`, value); const removeCssVariable = ([property]) => document.documentElement.style.removeProperty(`--${property}`); @@ -13,7 +8,6 @@ const applyCurrentPalette = async function () { const { currentPalette = '' } = await browser.storage.local.get('currentPalette'); if (!currentPalette) { - showChangePaletteButton(); appliedPaletteEntries.forEach(removeCssVariable); appliedPaletteEntries = []; return;