Update Header.js

This commit is contained in:
maxkadushkin 2021-07-20 21:31:42 +03:00 committed by GitHub
parent 148bc3e179
commit 2417c1d4db
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -560,7 +560,7 @@ define([
$panelUsers.hide();
if ( !!DE ) {
if ( !!window.DE ) {
var mode_cls = Common.UI.Themes.isContentThemeDark() ? 'btn-mode-dark' : 'btn-mode-light';
me.btnContentMode = createTitleButton('toolbar__icon icon--inverse ' + mode_cls, $html.findById('#slot-btn-mode'));
}