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