[DE] fix bug 54491

This commit is contained in:
Maxim Kadushkin 2021-12-13 18:24:48 +03:00
parent 0266eb5723
commit bb7069283f

View file

@ -251,12 +251,8 @@ 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());
}
if ( !!this.api.asc_setContentDarkMode && this.isDarkTheme() ) {
this.api.asc_setContentDarkMode(this.isContentThemeDark());
}
};