Skip to content

Commit

Permalink
Revert "removes unnecessary theme function"
Browse files Browse the repository at this point in the history
This reverts commit b59af18.
  • Loading branch information
ajyey committed Jun 15, 2024
1 parent ab0f36d commit 14401a1
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion assets/js/theme.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ let setThemeSetting = (themeSetting) => {

// Apply the computed dark or light theme to the website.
let applyTheme = () => {
let theme = determineThemeSetting();
let theme = determineComputedTheme();

transTheme();
setHighlight(theme);
Expand Down Expand Up @@ -210,6 +210,12 @@ let determineThemeSetting = () => {
return themeSetting;
};

// Determine the computed theme, which can be "dark" or "light".
let determineComputedTheme = () => {
let themeSetting = determineThemeSetting();
return themeSetting;
};

let initTheme = () => {
let themeSetting = determineThemeSetting();

Expand Down

0 comments on commit 14401a1

Please sign in to comment.