[desktop] extend themes initialization

This commit is contained in:
Maxim Kadushkin 2021-09-08 10:40:36 +03:00
parent cc5fd21f00
commit f0786bcdd6

View file

@ -52,6 +52,11 @@ var checkLocalStorage = (function () {
}
})();
if ( window.desktop && window.desktop.theme && (window.desktop.theme.id || window.desktop.theme.type)) {
// params.uitheme = undefined;
localStorage.setItem("ui-theme-id", window.desktop.theme.id);
}
if ( !!params.uitheme && checkLocalStorage && !localStorage.getItem("ui-theme-id") ) {
// const _t = params.uitheme.match(/([\w-]+)/g);