From 3fbe1cb139f3c986cc931179b2bbddabe645e700 Mon Sep 17 00:00:00 2001 From: Mirco Wittrien Date: Thu, 10 Sep 2020 17:57:54 +0200 Subject: [PATCH] Update 0BDFDB.plugin.js --- Library/0BDFDB.plugin.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Library/0BDFDB.plugin.js b/Library/0BDFDB.plugin.js index e6940cd9eb..ac8dcb08b2 100644 --- a/Library/0BDFDB.plugin.js +++ b/Library/0BDFDB.plugin.js @@ -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";}