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);