Update BDFDB.max.js

This commit is contained in:
Mirco Wittrien 2019-09-09 08:31:13 +02:00
parent 1d39aad450
commit ac0327476c
1 changed files with 1 additions and 1 deletions

View File

@ -1586,7 +1586,7 @@ var BDFDB = {myPlugins: BDFDB && BDFDB.myPlugins ? BDFDB.myPlugins : {}, BDv2Api
BDFDB.addOnSwitchListener = function (plugin) {
if (typeof plugin.onSwitch === 'function') {
BDFDB.removeOnSwitchListener(plugin);
var spacer = document.querySelector(`${BDFDB.dotCN.guildswrapper} + * > ${BDFDB.dotCN.chatspacer}`);
var spacer = document.querySelector(`${BDFDB.dotCN.guildswrapper} ~ * > ${BDFDB.dotCN.chatspacer}`);
if (spacer) {
var nochannelobserver = new MutationObserver(changes => {changes.forEach(change => {
if (change.target && BDFDB.containsClass(change.target, BDFDB.disCN.nochannel)) plugin.onSwitch();