Skip to content

Commit

Permalink
Fix darkmode
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonsturgeon committed Feb 8, 2024
1 parent 97fee8c commit 1f89681
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions build/fragments/darkmode.js
Original file line number Diff line number Diff line change
Expand Up @@ -141,12 +141,9 @@ function toggleDarkMode() {
checkDarkMode()
}

window.addEventListener("DOMContentLoaded", () => {
window.addEventListener("load", () => {
addTransitions()
checkDarkMode()
})

window.addEventListener("load", () => {
const button = document.getElementById("toggle-dark-mode")
button.addEventListener("click", toggleDarkMode)
})

0 comments on commit 1f89681

Please sign in to comment.