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 () {};