Skip to content

Commit

Permalink
fix theme toggle
Browse files Browse the repository at this point in the history
  • Loading branch information
kritzl committed Apr 1, 2024
1 parent 9349285 commit 4874e24
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mafiasi/base/static/js/misc.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 4874e24

Please sign in to comment.