Merge pull request #789 from ONLYOFFICE/fix/reporter

Fix/reporter
This commit is contained in:
maxkadushkin 2021-04-05 18:35:19 +03:00 committed by GitHub
commit ca7a76b8fc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 5 deletions

View file

@ -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) {

View file

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