Skip to content

Commit

Permalink
chore: redo
Browse files Browse the repository at this point in the history
  • Loading branch information
peterpeterparker committed Aug 22, 2023
1 parent 3374416 commit 0cc2a62
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/app.html
Original file line number Diff line number Diff line change
Expand Up @@ -109,9 +109,12 @@
"(prefers-color-scheme: dark)",
).matches;

const currentTheme = !localStorage.nnsTheme
? undefined
: JSON.parse(localStorage.nnsTheme);
const currentTheme =
localStorage.nnsTheme === null ||
localStorage.nnsTheme === undefined ||
localStorage.nnsTheme === ""
? undefined
: JSON.parse(localStorage.nnsTheme);

document.documentElement.setAttribute(
"theme",
Expand Down

0 comments on commit 0cc2a62

Please sign in to comment.