From c879fa6c8070b9903dcb43839329ef8b0a383f6a Mon Sep 17 00:00:00 2001 From: Maxim Kadushkin Date: Sat, 6 Feb 2021 12:55:47 +0300 Subject: [PATCH] [dark theme] changed storage key name --- apps/common/main/lib/controller/ExternalDiagramEditor.js | 4 ++-- apps/documenteditor/main/index.html | 2 +- apps/presentationeditor/main/app_dev.reporter.js | 2 +- apps/presentationeditor/main/index.html | 2 +- apps/spreadsheeteditor/main/index.html | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/apps/common/main/lib/controller/ExternalDiagramEditor.js b/apps/common/main/lib/controller/ExternalDiagramEditor.js index 3fb29f3b4..731df5d8d 100644 --- a/apps/common/main/lib/controller/ExternalDiagramEditor.js +++ b/apps/common/main/lib/controller/ExternalDiagramEditor.js @@ -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); } diff --git a/apps/documenteditor/main/index.html b/apps/documenteditor/main/index.html index b1b175c42..a6b8a0094 100644 --- a/apps/documenteditor/main/index.html +++ b/apps/documenteditor/main/index.html @@ -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); } diff --git a/apps/presentationeditor/main/app_dev.reporter.js b/apps/presentationeditor/main/app_dev.reporter.js index b5da5bf70..e0b1649a4 100644 --- a/apps/presentationeditor/main/app_dev.reporter.js +++ b/apps/presentationeditor/main/app_dev.reporter.js @@ -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) { diff --git a/apps/presentationeditor/main/index.html b/apps/presentationeditor/main/index.html index 24629fc9b..0a9d38930 100644 --- a/apps/presentationeditor/main/index.html +++ b/apps/presentationeditor/main/index.html @@ -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); } diff --git a/apps/spreadsheeteditor/main/index.html b/apps/spreadsheeteditor/main/index.html index 6b4cd55b2..fd0fe3d2e 100644 --- a/apps/spreadsheeteditor/main/index.html +++ b/apps/spreadsheeteditor/main/index.html @@ -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); }