From 66ed60e9913ec0fee48d4c475fc981d853135ae5 Mon Sep 17 00:00:00 2001 From: Oleg Korshul Date: Mon, 5 Apr 2021 18:00:00 +0300 Subject: [PATCH] Move install skin to config --- apps/presentationeditor/main/app.reporter.js | 3 ++- apps/presentationeditor/main/app_dev.reporter.js | 6 ++---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/apps/presentationeditor/main/app.reporter.js b/apps/presentationeditor/main/app.reporter.js index 14ed36933..016a2f690 100644 --- a/apps/presentationeditor/main/app.reporter.js +++ b/apps/presentationeditor/main/app.reporter.js @@ -92,7 +92,8 @@ require([ var api = new Asc.asc_docs_api({ 'id-view' : 'editor_sdk', - using : 'reporter' + using : 'reporter', + skin : (localStorage.getItem("ui-theme") == "theme-dark") ? "flatDark" : "flat" }); var setDocumentTitle = function(title) { diff --git a/apps/presentationeditor/main/app_dev.reporter.js b/apps/presentationeditor/main/app_dev.reporter.js index e0b1649a4..bbc6c16b7 100644 --- a/apps/presentationeditor/main/app_dev.reporter.js +++ b/apps/presentationeditor/main/app_dev.reporter.js @@ -93,12 +93,10 @@ require([ var api = new Asc.asc_docs_api({ 'id-view' : 'editor_sdk', - using : 'reporter' + using : 'reporter', + skin : (localStorage.getItem("ui-theme") == "theme-dark") ? "flatDark" : "flat" }); - var value = localStorage.getItem("ui-theme"); - api.asc_setSkin(value == "theme-dark" ? 'flatDark' : "flat"); - var setDocumentTitle = function(title) { (title) && (window.document.title += (' - ' + title)); };