[dark theme] changed storage key name
This commit is contained in:
parent
5586caa7a8
commit
c879fa6c80
|
@ -56,7 +56,7 @@ define([
|
||||||
|
|
||||||
|
|
||||||
var createExternalEditor = function() {
|
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', {
|
externalEditor = new DocsAPI.DocEditor('id-diagram-editor-placeholder', {
|
||||||
width : '100%',
|
width : '100%',
|
||||||
height : '100%',
|
height : '100%',
|
||||||
|
@ -245,7 +245,7 @@ define([
|
||||||
|
|
||||||
showExternalEditor: function () {
|
showExternalEditor: function () {
|
||||||
if ( externalEditor ) {
|
if ( externalEditor ) {
|
||||||
var value = Common.localStorage.getItem("uitheme", "theme-light");
|
var value = Common.localStorage.getItem("ui-theme", "theme-light");
|
||||||
externalEditor.serviceCommand('theme:change', value);
|
externalEditor.serviceCommand('theme:change', value);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -204,7 +204,7 @@
|
||||||
window.frameEditorId = params["frameEditorId"];
|
window.frameEditorId = params["frameEditorId"];
|
||||||
window.parentOrigin = params["parentOrigin"];
|
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 ) {
|
if ( !!ui_theme_name ) {
|
||||||
document.documentElement.classList.add(ui_theme_name);
|
document.documentElement.classList.add(ui_theme_name);
|
||||||
}
|
}
|
||||||
|
|
|
@ -96,7 +96,7 @@ require([
|
||||||
using : 'reporter'
|
using : 'reporter'
|
||||||
});
|
});
|
||||||
|
|
||||||
var value = localStorage.getItem("uitheme");
|
var value = localStorage.getItem("ui-theme");
|
||||||
api.asc_setSkin(value == "theme-dark" ? 'flatDark' : "flat");
|
api.asc_setSkin(value == "theme-dark" ? 'flatDark' : "flat");
|
||||||
|
|
||||||
var setDocumentTitle = function(title) {
|
var setDocumentTitle = function(title) {
|
||||||
|
|
|
@ -232,7 +232,7 @@
|
||||||
window.frameEditorId = params["frameEditorId"];
|
window.frameEditorId = params["frameEditorId"];
|
||||||
window.parentOrigin = params["parentOrigin"];
|
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 ) {
|
if ( !!ui_theme_name ) {
|
||||||
document.documentElement.classList.add(ui_theme_name);
|
document.documentElement.classList.add(ui_theme_name);
|
||||||
}
|
}
|
||||||
|
|
|
@ -232,7 +232,7 @@
|
||||||
window.frameEditorId = params["frameEditorId"];
|
window.frameEditorId = params["frameEditorId"];
|
||||||
window.parentOrigin = params["parentOrigin"];
|
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 ) {
|
if ( !!ui_theme_name ) {
|
||||||
document.documentElement.classList.add(ui_theme_name);
|
document.documentElement.classList.add(ui_theme_name);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue