diff options
Diffstat (limited to 'scripts/light-dark.js')
-rw-r--r-- | scripts/light-dark.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/scripts/light-dark.js b/scripts/light-dark.js index 643f8b7..5f0b4d4 100644 --- a/scripts/light-dark.js +++ b/scripts/light-dark.js @@ -4,17 +4,17 @@ var lightDark = document.getElementById("light-dark"); function setButtonText() { - if(Theme.get() == BASE_THEMES[0][0]) + if(window.Theme.get() == BASE_THEMES[0][0]) lightDark.innerText = BASE_THEMES[1][1] + " Mode"; else lightDark.innerText = BASE_THEMES[1][0] + " Mode"; } function changeTheme(e) { - if(Theme.get() == BASE_THEMES[0][0]) - Theme.set(BASE_THEMES[0][1]); + if(window.Theme.get() == BASE_THEMES[0][0]) + window.Theme.set(BASE_THEMES[0][1]); else - Theme.set(BASE_THEMES[0][0]); + window.Theme.set(BASE_THEMES[0][0]); setButtonText(); } |