Update 0BDFDB.plugin.js

This commit is contained in:
Mirco Wittrien 2023-10-25 12:48:59 +02:00
parent 61886b15b2
commit a443bed69d
1 changed files with 3 additions and 3 deletions

View File

@ -2,7 +2,7 @@
* @name BDFDB
* @author DevilBro
* @authorId 278543574059057154
* @version 3.4.2
* @version 3.4.3
* @description Required Library for DevilBro's Plugins
* @invite Jx3TjNS
* @donate https://www.paypal.me/MircoWittrien
@ -1371,7 +1371,7 @@ module.exports = (_ => {
}) || BDFDB.ModuleUtils.find(m => {
if (typeof m != "function") return false;
let stringified = m.toString().replace(/\s/g, "");
if (stringified.indexOf("e=>{e.exports={") != 0) return false;
if (stringified.indexOf("e=>{e.exports={") != 0 && stringified.indexOf("function(e,t,o){\"usestrict\";e.exports={") != 0) return false;
let amount = stringified.split(":\"").length - 1;
return (!config.length || (config.smaller ? amount < config.length : amount == config.length)) && [props].flat(10).every(string => stringified.indexOf(`${string}:`) > -1) && m;
}, {onlySearchUnloaded: true});
@ -4480,7 +4480,7 @@ module.exports = (_ => {
BDFDB.DiscordClasses = Object.assign({}, DiscordClasses);
Internal.getDiscordClass = function (item, selector) {
let className, fallbackClassName;
className = fallbackClassName = Internal.DiscordClassModules.BDFDB.BDFDBundefined + "-" + Internal.generateClassId();
className = fallbackClassName = Internal.DiscordClassModules.BDFDB.BDFDBundefined + "_" + Internal.generateClassId();
if (DiscordClasses[item] === undefined) {
BDFDB.LogUtils.warn([item, "not found in DiscordClasses"]);
return className;