Update 0BDFDB.plugin.js

This commit is contained in:
Mirco Wittrien 2021-10-19 15:21:27 +02:00
parent ca9c72338e
commit ad8049fd3d
1 changed files with 5 additions and 4 deletions

View File

@ -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});
}
}