Move install skin to config
This commit is contained in:
parent
192995c854
commit
66ed60e991
|
@ -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) {
|
||||
|
|
|
@ -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));
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue