Skip to content

Commit

Permalink
fixing theme-loader.js
Browse files Browse the repository at this point in the history
  • Loading branch information
TeaByte committed Jan 19, 2024
1 parent 4a0913c commit 7f07c62
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions static/theme-loader.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
const storedTheme = localStorage.getItem("selectedTheme");
if (storedTheme) {
document.documentElement.setAttribute("data-theme", storedTheme);
} else {
localStorage.setItem("selectedTheme", "dracula");
}

0 comments on commit 7f07c62

Please sign in to comment.