[DE] fix bug 54491
This commit is contained in:
parent
0266eb5723
commit
bb7069283f
|
@ -251,13 +251,9 @@ define([
|
|||
}
|
||||
|
||||
var on_document_open = function (data) {
|
||||
var document = data.doc;
|
||||
is_dark_mode_allowed = !/^pdf|djvu|xps|oxps$/.test(document.fileType);
|
||||
if ( is_dark_mode_allowed ) {
|
||||
if ( !!this.api.asc_setContentDarkMode && this.isDarkTheme() ) {
|
||||
this.api.asc_setContentDarkMode(this.isContentThemeDark());
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
return {
|
||||
|
|
Loading…
Reference in a new issue