[themes] fix dependance theme from config

This commit is contained in:
Maxim Kadushkin 2021-05-21 15:17:04 +03:00
parent 1ffb75d3ee
commit f48235f3cf

View file

@ -32,8 +32,17 @@ var params = (function() {
return urlParams;
})();
if ( !!params.uitheme && !localStorage.getItem("ui-theme") )
if ( !!params.uitheme && !localStorage.getItem("ui-theme") ) {
// const _t = params.uitheme.match(/([\w-]+)/g);
if ( params.uitheme == 'default-dark' )
params.uitheme = 'theme-dark';
else
if ( params.uitheme == 'default-light' )
params.uitheme = 'theme-classic-light';
localStorage.setItem("ui-theme", params.uitheme);
}
var ui_theme_name = localStorage.getItem("ui-theme");
if ( !!ui_theme_name ) {