From c3fcd25dba10be342f1a860f22266068c8f4f572 Mon Sep 17 00:00:00 2001 From: Mirco Wittrien Date: Sat, 9 Jan 2021 22:09:34 +0100 Subject: [PATCH] Update 0BDFDB.plugin.js --- Library/0BDFDB.plugin.js | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/Library/0BDFDB.plugin.js b/Library/0BDFDB.plugin.js index 9da7144abc..6b1ab855e7 100644 --- a/Library/0BDFDB.plugin.js +++ b/Library/0BDFDB.plugin.js @@ -7924,17 +7924,17 @@ module.exports = (_ => { }; BDFDB.DevUtils.req = InternalBDFDB.getWebModuleReq(); - window.BDFDB_Global = BDFDB; - } - else { - window.BDFDB_Global = Object.assign({ - PluginUtils: { - buildPlugin: BDFDB.PluginUtils.buildPlugin, - cleanUp: BDFDB.PluginUtils.cleanUp - } - }, config); - Object.freeze(BDFDB); + window.BDFDB = BDFDB; } + + window.BDFDB_Global = Object.assign({ + PluginUtils: { + buildPlugin: BDFDB.PluginUtils.buildPlugin, + cleanUp: BDFDB.PluginUtils.cleanUp + } + }, config); + Object.freeze(BDFDB); + for (let obj in DiscordObjects) if (!DiscordObjects[obj]) { DiscordObjects[obj] = function () {}; BDFDB.DiscordObjects[obj] = function () {};