diff --git a/client/src/components/App/index.js b/client/src/components/App/index.js index 5e3e67e6adf..49c643ffff8 100644 --- a/client/src/components/App/index.js +++ b/client/src/components/App/index.js @@ -161,7 +161,6 @@ const App = () => { return; } - console.log(`selected:${theme}`); if (theme !== THEMES.auto) { setUITheme(theme); @@ -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); }); diff --git a/client/src/helpers/helpers.js b/client/src/helpers/helpers.js index 65c6039d5e7..bc56fd425c1 100644 --- a/client/src/helpers/helpers.js +++ b/client/src/helpers/helpers.js @@ -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; }; /**