From ad8049fd3d44d8a3c95dc439589d9b2b5a8b260c Mon Sep 17 00:00:00 2001 From: Mirco Wittrien Date: Tue, 19 Oct 2021 15:21:27 +0200 Subject: [PATCH] Update 0BDFDB.plugin.js --- Library/0BDFDB.plugin.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Library/0BDFDB.plugin.js b/Library/0BDFDB.plugin.js index d780f4449a..9bb2872bdc 100644 --- a/Library/0BDFDB.plugin.js +++ b/Library/0BDFDB.plugin.js @@ -2,7 +2,7 @@ * @name BDFDB * @author DevilBro * @authorId 278543574059057154 - * @version 1.9.3 + * @version 1.9.4 * @description Required Library for DevilBro's Plugins * @invite Jx3TjNS * @donate https://www.paypal.me/MircoWittrien @@ -19,7 +19,7 @@ module.exports = (_ => { "info": { "name": "BDFDB", "author": "DevilBro", - "version": "1.9.3", + "version": "1.9.4", "description": "Required Library for DevilBro's Plugins" }, "rawUrl": `https://mwittrien.github.io/BetterDiscordAddons/Library/0BDFDB.plugin.js` @@ -2225,6 +2225,7 @@ module.exports = (_ => { } } else { + ins = BDFDB.ReactUtils.findConstructor(ins, "Channels") || BDFDB.ReactUtils.findConstructor(ins, "Channels", {up: true}) || ins; InternalBDFDB.patchComponent(pluginDataObjs, ins, type, config); BDFDB.PatchUtils.forceAllUpdates(pluginDataObjs.map(n => n.plugin), type); return true; @@ -2250,7 +2251,7 @@ module.exports = (_ => { if (!InternalBDFDB.patchObserverData.observer) { let appMount = document.querySelector(BDFDB.dotCN.appmount); if (appMount) { - InternalBDFDB.patchObserverData.observer = new MutationObserver(cs => {cs.forEach(c => {c.addedNodes.forEach(n => { + InternalBDFDB.patchObserverData.observer = new MutationObserver(cs => cs.forEach(c => c.addedNodes.forEach(n => { if (!n || !n.tagName) return; for (let type in InternalBDFDB.patchObserverData.data) if (!InternalBDFDB.patchObserverData.data[type].found) { let ele = null; @@ -2265,7 +2266,7 @@ module.exports = (_ => { } } } - });});}); + }))); InternalBDFDB.patchObserverData.observer.observe(appMount, {childList: true, subtree: true}); } }