Skip to content

Commit

Permalink
Update light-mode.js
Browse files Browse the repository at this point in the history
  • Loading branch information
lunekiska authored Feb 17, 2024
1 parent 8b10234 commit b1a0c57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/light-mode.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const button = document.querySelector("input");
button.addEventListener("click", lightModeFunction);

function lightModeFunction() {
var element = document.getElementById("*");
var element = document.body;
if (button.lightMode = true) {
return element.classList.toggle("../css/light-mode.css")
}
Expand Down

0 comments on commit b1a0c57

Please sign in to comment.