[desktop] fix for system theme

This commit is contained in:
Maxim Kadushkin 2022-07-21 17:10:03 +03:00
parent 7c584932a0
commit ecd29e789a

View file

@ -62,8 +62,13 @@ if ( window.desktop ) {
} }
if ( theme.id ) { if ( theme.id ) {
// params.uitheme = undefined; if ( theme.id == 'theme-system' ) {
localStorage.setItem("ui-theme-id", theme.id); localStorage.setItem("ui-theme-use-system", "1");
localStorage.removeItem("ui-theme-id");
} else {
localStorage.setItem("ui-theme-id", theme.id);
}
localStorage.removeItem("ui-theme"); localStorage.removeItem("ui-theme");
} }
} }