mirror of
https://github.com/ONLYOFFICE/web-apps.git
synced 2026-07-24 08:55:16 +08:00
[common] fix for IE
This commit is contained in:
@ -64,8 +64,8 @@
|
||||
|
||||
let objtheme = window.uitheme.colors ? window.uitheme : localStorage.getItem("ui-theme");
|
||||
if ( !!objtheme ) {
|
||||
if ( typeof(objtheme) == 'string' &&
|
||||
objtheme.startsWith("{") && objtheme.endsWith("}") )
|
||||
if ( typeof(objtheme) == 'string' && objtheme.lastIndexOf("{", 0) === 0 &&
|
||||
objtheme.indexOf("}", objtheme.length - 1) !== -1 )
|
||||
{
|
||||
objtheme = JSON.parse(objtheme);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user