diff --git a/apps/common/mobile/utils/htmlutils.js b/apps/common/mobile/utils/htmlutils.js
index 377c4c755..dd3f690b4 100644
--- a/apps/common/mobile/utils/htmlutils.js
+++ b/apps/common/mobile/utils/htmlutils.js
@@ -1,10 +1,9 @@
let obj = !localStorage ? {id: 'theme-light', type: 'light'} : JSON.parse(localStorage.getItem("ui-theme"));
if ( !obj ) {
- if ( window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches ) {
- obj = {id: 'theme-dark', type: 'dark'};
- localStorage && localStorage.setItem("ui-theme", JSON.stringify(obj));
- }
+ obj = window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches ?
+ {id: 'theme-dark', type: 'dark'} : {id: 'theme-light', type: 'light'};
+ localStorage && localStorage.setItem("ui-theme", JSON.stringify(obj));
}
document.body.classList.add(`theme-type-${obj.type}`);