Skip to content

Commit

Permalink
defaults theme to dark
Browse files Browse the repository at this point in the history
  • Loading branch information
ajyey committed Jun 15, 2024
1 parent ab72929 commit ab0f36d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions assets/js/theme.js
Original file line number Diff line number Diff line change
Expand Up @@ -201,11 +201,11 @@ let transTheme = () => {
}, 500);
};

// Determine the expected state of the theme toggle, which can be "dark" or "light". Default is "light".
// Determine the expected state of the theme toggle, which can be "dark" or "light". Default is "dark".
let determineThemeSetting = () => {
let themeSetting = localStorage.getItem("theme");
if (themeSetting != "dark" && themeSetting != "light") {
themeSetting = "light";
themeSetting = "dark";
}
return themeSetting;
};
Expand Down

0 comments on commit ab0f36d

Please sign in to comment.