Skip to content

Commit

Permalink
client: imp code
Browse files Browse the repository at this point in the history
  • Loading branch information
Mizzick committed Jan 16, 2023
1 parent cb07680 commit 1bbbd20
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions client/src/components/App/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,6 @@ const App = () => {
return;
}

console.log(`selected:${theme}`);
if (theme !== THEMES.auto) {
setUITheme(theme);

Expand All @@ -177,7 +176,7 @@ const App = () => {
handleAutoTheme(e, theme);
});
} else {
// Deprecated addListener for older versions of Safari
// Deprecated addListener for older versions of Safari.
colorSchemeMedia.addListener((e) => {
handleAutoTheme(e, theme);
});
Expand Down
2 changes: 1 addition & 1 deletion client/src/helpers/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -676,7 +676,7 @@ export const setHtmlLangAttr = (language) => {
* @param theme
*/
export const setUITheme = (theme) => {
console.log(`set ui theme: ${theme}`);
document.body.dataset.theme = theme;
};

/**
Expand Down

0 comments on commit 1bbbd20

Please sign in to comment.