Update 0BDFDB.plugin.js

This commit is contained in:
Mirco Wittrien 2022-09-01 14:59:43 +02:00
parent faf7dca466
commit 49754b045a
1 changed files with 9 additions and 2 deletions

View File

@ -15,8 +15,6 @@
module.exports = (_ => { module.exports = (_ => {
if (window.BDFDB_Global && window.BDFDB_Global.PluginUtils && typeof window.BDFDB_Global.PluginUtils.cleanUp == "function") window.BDFDB_Global.PluginUtils.cleanUp(window.BDFDB_Global); if (window.BDFDB_Global && window.BDFDB_Global.PluginUtils && typeof window.BDFDB_Global.PluginUtils.cleanUp == "function") window.BDFDB_Global.PluginUtils.cleanUp(window.BDFDB_Global);
window.BDFDB_Global = Object.assign({}, window.BDFDB_Global);
const BDFDB = { const BDFDB = {
started: true started: true
}; };
@ -965,6 +963,15 @@ module.exports = (_ => {
} }
}; };
window.BDFDB_Global = Object.assign({
started: true,
loading: true,
PluginUtils: {
buildPlugin: BDFDB.PluginUtils.buildPlugin,
cleanUp: BDFDB.PluginUtils.cleanUp
}
}, window.BDFDB_Global);
const request = require("request"), fs = require("fs"), path = require("path"); const request = require("request"), fs = require("fs"), path = require("path");
Internal.writeConfig = function (plugin, path, config) { Internal.writeConfig = function (plugin, path, config) {