Skip to content

Commit

Permalink
Fix: Typo in theme switcher
Browse files Browse the repository at this point in the history
  • Loading branch information
Thiousi authored Jan 25, 2024
1 parent 0d590d0 commit 6e02479
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -935,7 +935,7 @@ <h3>Confirm deletion</h3>
this.$dispatch('notify', {
message: `Theme changed to ${this.isDark ? 'dark' : 'light'} mode`
});
let lightOrDark = this.isDark ? dark : light;
let lightOrDark = this.isDark ? 'dark' : 'light';
let themeColor = getComputedStyle(document.documentElement).getPropertyValue(`--color-theme-${lightOrDark}`);
document.querySelector('meta[name="theme-color"]').setAttribute('content', themeColor);
},
Expand Down

0 comments on commit 6e02479

Please sign in to comment.