[DE] fix bug 54348

This commit is contained in:
Maxim Kadushkin 2021-12-08 18:20:19 +03:00
parent 4e69950665
commit 87635fde48

View file

@ -325,7 +325,8 @@ define([
})).on('click', _on_btn_zoom.bind(me, 'up'));
me.header.btnOptions.menu.on('item:click', me.onOptionsItemClick.bind(this));
if ( !Common.UI.Themes.isDarkTheme() ) {
var document = DE.getController('Main').document;
if ( !Common.UI.Themes.isDarkTheme() || /^pdf|djvu|xps|oxps$/.test(document.fileType) ) {
me.header.menuItemsDarkMode.hide();
me.header.menuItemsDarkMode.$el.prev('.divider').hide();
}