diff --git a/themes/patek/assets/js/dark-mode.js b/themes/patek/assets/js/dark-mode.js index 43df99f..a5217a4 100644 --- a/themes/patek/assets/js/dark-mode.js +++ b/themes/patek/assets/js/dark-mode.js @@ -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");