This commit is contained in:
Mirco Wittrien 2019-10-18 12:01:11 +02:00
parent 294489800a
commit 52319bd987
2 changed files with 3 additions and 5 deletions

View File

@ -46,10 +46,8 @@ 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") {
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);}
}
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) {

File diff suppressed because one or more lines are too long