From 4874e2437dfb509a1f1b20e2114fe513f68fd31a Mon Sep 17 00:00:00 2001 From: kritzl Date: Mon, 1 Apr 2024 03:59:27 +0200 Subject: [PATCH] fix theme toggle --- mafiasi/base/static/js/misc.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mafiasi/base/static/js/misc.js b/mafiasi/base/static/js/misc.js index 0031aa0..d44ebef 100644 --- a/mafiasi/base/static/js/misc.js +++ b/mafiasi/base/static/js/misc.js @@ -8,6 +8,8 @@ function toggleTheme() { document.documentElement.dataset.theme = theme } +document.querySelector('#theme-toggle').addEventListener('click', toggleTheme) + function disableSpecialFeature() { const tomorrow = new Date() tomorrow.setDate(tomorrow.getDate() + 1);