Merge pull request #1115 from ONLYOFFICE/feature/pr1-fixbug-52102

[PE] fix bug 52102
This commit is contained in:
maxkadushkin 2021-08-23 19:09:35 +03:00 committed by GitHub
commit e927fc0c0e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -225,6 +225,16 @@ define([
this.api = api; this.api = api;
var theme_name = get_ui_theme_name(Common.localStorage.getItem('ui-theme')); 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;
}
}
}
if ( !themes_map[theme_name] ) if ( !themes_map[theme_name] )
theme_name = id_default_light_theme; theme_name = id_default_light_theme;