[themes] correct theme id in system with drak theme
This commit is contained in:
parent
6272524079
commit
bc739739e0
|
@ -229,11 +229,14 @@ define([
|
||||||
if ( !(Common.Utils.isIE10 || Common.Utils.isIE11) )
|
if ( !(Common.Utils.isIE10 || Common.Utils.isIE11) )
|
||||||
for (var i of document.body.classList.entries()) {
|
for (var i of document.body.classList.entries()) {
|
||||||
if ( i[1].startsWith('theme-') && !i[1].startsWith('theme-type-') ) {
|
if ( i[1].startsWith('theme-') && !i[1].startsWith('theme-type-') ) {
|
||||||
|
if ( themes_map[i[1]] ) {
|
||||||
theme_name = i[1];
|
theme_name = i[1];
|
||||||
|
Common.localStorage.setItem('ui-theme-id', theme_name);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if ( !themes_map[theme_name] )
|
if ( !themes_map[theme_name] )
|
||||||
theme_name = id_default_light_theme;
|
theme_name = id_default_light_theme;
|
||||||
|
|
Loading…
Reference in a new issue