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 b03f17f..b60f85e 100644
--- a/static/js/theme_button.js
+++ b/static/js/theme_button.js
@@ -1,6 +1,6 @@
-// Set lightmode
+// switch theme mode
if (document.getElementById('mode')) {
- document.getElementById('mode').addEventListener('click', () => {
+ document.getElementById('mode').addEventListener('click', () => {
document.documentElement.classList.toggle('switch');
localStorage.setItem('theme', document.documentElement.classList.contains('switch') ? 'switch' : 'default');
});