diff --git a/Templates/layout.liquid b/Templates/layout.liquid index 2443630..6d37589 100644 --- a/Templates/layout.liquid +++ b/Templates/layout.liquid @@ -85,7 +85,7 @@ darkModeToggle.addEventListener("click", toggleDarkMode); if (localStorage.getItem("dark") === "enabled") { - toggleDarkMode(); + body.classList.toggle("dark"); }