Skip to content

Commit c9d2fea

Browse files
committed
main: made white the default again
1 parent edb67d9 commit c9d2fea

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/main.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ createApp(App).use(router).use(BackToTop).mount("#app");
1212
const appTheme = localStorage.getItem("theme");
1313

1414
// 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 {
15+
if (appTheme === "dark" && document.querySelector("body").classList.contains("app-theme")) {
1816
document.querySelector("body").classList.add("bg-primary-dark");
17+
} else {
18+
document.querySelector("body").classList.add("bg-secondary-light");
1919
}

0 commit comments

Comments
 (0)