aboutsummaryrefslogtreecommitdiff
path: root/static/js/theme_button.js
diff options
context:
space:
mode:
Diffstat (limited to 'static/js/theme_button.js')
-rw-r--r--static/js/theme_button.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/static/js/theme_button.js b/static/js/theme_button.js
index 34d1d78..b03f17f 100644
--- a/static/js/theme_button.js
+++ b/static/js/theme_button.js
@@ -1,7 +1,7 @@
// Set lightmode
if (document.getElementById('mode')) {
document.getElementById('mode').addEventListener('click', () => {
- document.documentElement.classList.toggle('light');
- localStorage.setItem('theme', document.documentElement.classList.contains('light') ? 'light' : 'dark');
+ document.documentElement.classList.toggle('switch');
+ localStorage.setItem('theme', document.documentElement.classList.contains('switch') ? 'switch' : 'default');
});
}