Hopefully fix indentation #3
This commit is contained in:
parent
8ead6a8b9d
commit
ebd2774eab
@ -1,7 +1,7 @@
|
||||
function restoreDarkmode() {
|
||||
const prefersDarkMode = window.matchMedia("(prefers-color-scheme: dark)");
|
||||
const elem = document.getElementById("content");
|
||||
|
||||
|
||||
if (!document.cookie.includes("dark-mode=")) {
|
||||
if (prefersDarkMode.matches) {
|
||||
elem.classList.add("dark-mode");
|
||||
|
Loading…
Reference in New Issue
Block a user