We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent edb67d9 commit c9d2feaCopy full SHA for c9d2fea
src/main.js
@@ -12,8 +12,8 @@ createApp(App).use(router).use(BackToTop).mount("#app");
12
const appTheme = localStorage.getItem("theme");
13
14
// Check what is the active theme and change theme when user clicks on the theme button in header.
15
-if (appTheme === "light" && document.querySelector("body").classList.contains("app-theme")) {
16
- document.querySelector("body").classList.add("bg-secondary-light");
17
-} else {
+if (appTheme === "dark" && document.querySelector("body").classList.contains("app-theme")) {
18
document.querySelector("body").classList.add("bg-primary-dark");
+} else {
+ document.querySelector("body").classList.add("bg-secondary-light");
19
}
0 commit comments