From d68d1d220bb850cded29e2c7a5f243eb866feba5 Mon Sep 17 00:00:00 2001 From: Maxim Kadushkin Date: Wed, 6 Oct 2021 20:33:39 +0300 Subject: [PATCH] [DE] debug --- apps/common/main/lib/view/Header.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/common/main/lib/view/Header.js b/apps/common/main/lib/view/Header.js index 38ae5144b..d17a6a00f 100644 --- a/apps/common/main/lib/view/Header.js +++ b/apps/common/main/lib/view/Header.js @@ -566,7 +566,7 @@ define([ var mode_cls = Common.UI.Themes.isContentThemeDark() ? 'btn-mode-light' : 'btn-mode-dark'; me.btnContentMode = createTitleButton('toolbar__icon icon--inverse ' + mode_cls, $html.findById('#slot-btn-mode'), undefined, 'bottom', 'big'); - var document = this.getApplication().getController('Main').document; + var document = window.DE.getController('Main').document; me.btnContentMode.setVisible(Common.UI.Themes.isDarkTheme() && !/^pdf|djvu|xps|oxps$/.test(document.fileType)); }