5,798
edits
No edit summary |
No edit summary |
||
Line 552: | Line 552: | ||
const darkMode = localStorage.getItem("darkMode"); | const darkMode = localStorage.getItem("darkMode"); | ||
if (darkMode === "true") { | if (darkMode === "true") { | ||
document.body.classList.add("darkMode"); | |||
} else { | } else { | ||
document.body.classList.remove("darkMode"); | |||
} | } | ||
}); | }); |