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)); };