mirror of
https://github.com/ONLYOFFICE/web-apps.git
synced 2026-07-24 22:39:17 +08:00
[themes] refactoring. skip es6 syntax
This commit is contained in:
@ -249,12 +249,11 @@ define([
|
||||
var theme_name = get_ui_theme_name(Common.localStorage.getItem('ui-theme'));
|
||||
if ( !theme_name ) {
|
||||
if ( !(Common.Utils.isIE10 || Common.Utils.isIE11) )
|
||||
for (var i of document.body.classList.entries()) {
|
||||
if ( i[1].startsWith('theme-') && !i[1].startsWith('theme-type-') ) {
|
||||
theme_name = i[1];
|
||||
break;
|
||||
document.body.classList.forEach(function (classname, i, o) {
|
||||
if ( !theme_name && classname.startsWith('theme-') && !classname.startsWith('theme-type-') ) {
|
||||
theme_name = classname;
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
if ( !themes_map[theme_name] )
|
||||
|
||||
Reference in New Issue
Block a user