Update 0BDFDB.plugin.js

This commit is contained in:
Mirco Wittrien 2020-09-10 17:57:54 +02:00
parent fc02cf4458
commit 3fbe1cb139
1 changed files with 4 additions and 2 deletions

View File

@ -564,7 +564,7 @@ var BDFDB = (_ => {
return [...new Set(array)];
};
if (window.BDFDB && BDFDB.ArrayUtils.is(window.BDFDB.pluginQueue)) for (let config of window.BDFDB.pluginQueue) BdApi.Plugins.reload(config.name);
let pluginQueue = window.BDFDB && BDFDB.ArrayUtils.is(window.BDFDB.pluginQueue) ? window.BDFDB.pluginQueue : null;
window.BDFDB = {
name: "BDFDB",
@ -574,7 +574,9 @@ var BDFDB = (_ => {
cleanUp: BDFDB.PluginUtils.cleanUp
}
};
if (pluginQueue) for (let config of pluginQueue) BdApi.Plugins.reload(config.name);
return class BDFDB {
getName () {return "BDFDB";}