Skip to content

Commit

Permalink
trying to set dark theme as default (theme.js)
Browse files Browse the repository at this point in the history
  • Loading branch information
gravitangie authored Sep 15, 2024
1 parent dc3dd1c commit 703d391
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions assets/js/theme.js
Original file line number Diff line number Diff line change
Expand Up @@ -208,10 +208,11 @@ let transTheme = () => {
// Determine the expected state of the theme toggle, which can be "dark", "light", or
// "system". Default is "system".
let determineThemeSetting = () => {
let themeSetting = localStorage.getItem("theme");
if (themeSetting != "dark" && themeSetting != "light" && themeSetting != "system") {
themeSetting = "system";
}
// let themeSetting = localStorage.getItem("theme");
// if (themeSetting != "dark" && themeSetting != "light" && themeSetting != "system") {
// themeSetting = "system";
// }
themeSetting = "dark";
return themeSetting;
};

Expand Down

0 comments on commit 703d391

Please sign in to comment.