Update 0BDFDB.plugin.js

This commit is contained in:
Mirco Wittrien 2023-04-04 18:25:18 +02:00
parent db2bb10d27
commit bb9c613201
1 changed files with 3 additions and 2 deletions

View File

@ -2,7 +2,7 @@
* @name BDFDB
* @author DevilBro
* @authorId 278543574059057154
* @version 3.2.4
* @version 3.2.5
* @description Required Library for DevilBro's Plugins
* @invite Jx3TjNS
* @donate https://www.paypal.me/MircoWittrien
@ -2837,6 +2837,7 @@ module.exports = (_ => {
return: config.up ? true : false,
sibling: config.up ? false : true
};
let whitelistKeys = Object.keys(whitelist);
let blacklist = {
contextSection: true
};
@ -2848,7 +2849,7 @@ module.exports = (_ => {
depth++;
let result = undefined;
if (instance && !Node.prototype.isPrototypeOf(instance) && !BDFDB.ReactUtils.getInstance(instance) && depth < maxDepth && performance.now() - start < maxTime) {
let keys = Object.keys(instance);
let keys = Object.keys(instance).sort((x, y) => whitelistKeys.indexOf(x) < whitelistKeys.indexOf(y) ? -1 : 1);
for (let i = 0; result === undefined && i < keys.length; i++) {
let key = keys[i];
if (key && !blacklist[key]) {