[dark theme] changed storage key name

This commit is contained in:
Maxim Kadushkin 2021-02-06 12:55:47 +03:00
parent 5586caa7a8
commit c879fa6c80
5 changed files with 6 additions and 6 deletions

View file

@ -56,7 +56,7 @@ define([
var createExternalEditor = function() {
!!customization && (customization.uiTheme = Common.localStorage.getItem("uitheme", "theme-light"));
!!customization && (customization.uiTheme = Common.localStorage.getItem("ui-theme", "theme-light"));
externalEditor = new DocsAPI.DocEditor('id-diagram-editor-placeholder', {
width : '100%',
height : '100%',
@ -245,7 +245,7 @@ define([
showExternalEditor: function () {
if ( externalEditor ) {
var value = Common.localStorage.getItem("uitheme", "theme-light");
var value = Common.localStorage.getItem("ui-theme", "theme-light");
externalEditor.serviceCommand('theme:change', value);
}

View file

@ -204,7 +204,7 @@
window.frameEditorId = params["frameEditorId"];
window.parentOrigin = params["parentOrigin"];
var ui_theme_name = params.uitheme || localStorage.getItem("uitheme");
var ui_theme_name = params.uitheme || localStorage.getItem("ui-theme");
if ( !!ui_theme_name ) {
document.documentElement.classList.add(ui_theme_name);
}

View file

@ -96,7 +96,7 @@ require([
using : 'reporter'
});
var value = localStorage.getItem("uitheme");
var value = localStorage.getItem("ui-theme");
api.asc_setSkin(value == "theme-dark" ? 'flatDark' : "flat");
var setDocumentTitle = function(title) {

View file

@ -232,7 +232,7 @@
window.frameEditorId = params["frameEditorId"];
window.parentOrigin = params["parentOrigin"];
var ui_theme_name = params.uitheme || localStorage.getItem("uitheme");
var ui_theme_name = params.uitheme || localStorage.getItem("ui-theme");
if ( !!ui_theme_name ) {
document.documentElement.classList.add(ui_theme_name);
}

View file

@ -232,7 +232,7 @@
window.frameEditorId = params["frameEditorId"];
window.parentOrigin = params["parentOrigin"];
var ui_theme_name = params.uitheme || localStorage.getItem("uitheme");
var ui_theme_name = params.uitheme || localStorage.getItem("ui-theme");
if ( !!ui_theme_name ) {
document.documentElement.classList.add(ui_theme_name);
}