This commit is contained in:
Mirco Wittrien 2019-09-25 21:28:38 +02:00
parent 2220ed748c
commit fe12903230
2 changed files with 3 additions and 3 deletions

File diff suppressed because one or more lines are too long

View File

@ -3744,8 +3744,8 @@ var BDFDB = {myPlugins: BDFDB && BDFDB.myPlugins ? BDFDB.myPlugins : {}, BDv2Api
else return BDFDB.Plugins[plugname.toLowerCase()] ? BDFDB.Plugins[plugname.toLowerCase()].enabled : null;
};
BDFDB.getPlugin = function (plugname) {
if (BDFDB.isPluginEnabled(plugname)) return BdApi.getPlugin(plugname);
BDFDB.getPlugin = function (plugname, hasToBeEnabled = false) {
if (!hasToBeEnabled || BDFDB.isPluginEnabled(plugname)) return BdApi.getPlugin(plugname);
return null;
};