diff --git a/src/components/common/BasicScripts.astro b/src/components/common/BasicScripts.astro index 8492b00..e84c79b 100644 --- a/src/components/common/BasicScripts.astro +++ b/src/components/common/BasicScripts.astro @@ -70,7 +70,7 @@ import { UI } from 'astrowind:config'; } Observer.removeAnimationDelay(); - + document.documentElement.classList.toggle('dark'); localStorage.theme = document.documentElement.classList.contains('dark') ? 'dark' : 'light'; }); @@ -262,7 +262,7 @@ import { UI } from 'astrowind:config'; el.style.transitionDelay = ''; el.style.animationDelay = ''; } - }); + }); }, };