lib
This commit is contained in:
parent
8f4a57a211
commit
294489800a
|
@ -45,7 +45,12 @@ var BDFDB = {myPlugins: BDFDB && BDFDB.myPlugins ? BDFDB.myPlugins : {}, BDv2Api
|
|||
|
||||
plugin.started = true;
|
||||
|
||||
for (let name in BDFDB.myPlugins) if (!BDFDB.myPlugins[name].started && typeof BDFDB.myPlugins[name].initialize == "function") BDFDB.myPlugins[name].initialize();
|
||||
for (let name in BDFDB.myPlugins) if (!BDFDB.myPlugins[name].started && typeof BDFDB.myPlugins[name].initialize == "function") {
|
||||
if (typeof plugin.initConstructor === "function") {
|
||||
try {BDFDB.myPlugins[name].initialize();}
|
||||
catch (err) {console.error(`%c[${plugin.name}]%c`, "color: #3a71c1; font-weight: 700;", "", "Fatal Error: Could not initiate plugin! " + err);}
|
||||
}
|
||||
}
|
||||
};
|
||||
BDFDB.PluginUtils.clear = function (plugin) {
|
||||
InternalBDFDB.clearStartTimeout(plugin);
|
||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue