Update OldTitleBar.plugin.js

This commit is contained in:
Mirco Wittrien 2019-11-12 15:42:41 +01:00
parent d463419fd9
commit 5d7da8bb93
1 changed files with 1 additions and 1 deletions

View File

@ -201,7 +201,6 @@ class OldTitleBar {
}
processAuthWrapper (e) {
BDFDB.DOMUtils.addClass(document.documentElement, "OTB-enabled");
if (!BDFDB.ArrayUtils.is(e.returnvalue.props.children)) e.returnvalue.props.children = [e.returnvalue.props.children];
this.injectSettingsToolbar(e.returnvalue.props.children, true);
}
@ -218,6 +217,7 @@ class OldTitleBar {
}
injectButtons (children, addFirstDivider) {
BDFDB.DOMUtils.addClass(document.documentElement, "OTB-enabled");
if (addFirstDivider) children.push(BDFDB.ReactUtils.createElement("div", {className: BDFDB.disCN.channelheaderdivider}))
if (BDFDB.DataUtils.get(this, "settings", "reloadButton")) {
children.push(BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.TooltipContainer, {