Skip to content

Commit

Permalink
fix: remove old dark theme LS sync
Browse files Browse the repository at this point in the history
  • Loading branch information
altrusl committed Feb 7, 2024
1 parent 1ee1282 commit cfc9538
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/composables/useAppConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ useLocalStorage().observe("isDarkTheme", isDarkTheme);
watch(isDarkTheme, () => {
if (isDarkTheme.value) {
document.documentElement.classList.add("dark");
localStorage.setItem(APPEARANCE_KEY, "dark");
// localStorage.setItem(APPEARANCE_KEY, "dark");
} else {
document.documentElement.classList.remove("dark");
localStorage.setItem(APPEARANCE_KEY, "");
// localStorage.setItem(APPEARANCE_KEY, "");
}
});

Expand Down

0 comments on commit cfc9538

Please sign in to comment.