summaryrefslogtreecommitdiff
path: root/scripts/light-dark.js
diff options
context:
space:
mode:
authorKyle Gunger <kgunger12@gmail.com>2024-07-16 00:35:42 -0400
committerKyle Gunger <kgunger12@gmail.com>2024-07-16 00:35:42 -0400
commit52d527b95e4710f22ba2557f7e68a31cfd4fb51a (patch)
treee1ac7b42827f4c5aa31a2ed78b77fe51a18c5429 /scripts/light-dark.js
parentdbdb95507e6dfeb4039a2350e2dd5bace7596ce6 (diff)
Hopefully work better on Archive.org
Diffstat (limited to 'scripts/light-dark.js')
-rw-r--r--scripts/light-dark.js8
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();
}