Update 0BDFDB.plugin.js
This commit is contained in:
parent
78cf3fb9ea
commit
e1bdb7d5e0
|
@ -109,6 +109,8 @@ module.exports = (_ => {
|
||||||
getDescription () {return config.info.description;}
|
getDescription () {return config.info.description;}
|
||||||
load () {
|
load () {
|
||||||
this.loaded = true;
|
this.loaded = true;
|
||||||
|
this.defaults = {};
|
||||||
|
this.labels = {};
|
||||||
if (window.BDFDB_Global.loading) {
|
if (window.BDFDB_Global.loading) {
|
||||||
if (!PluginStores.delayed.loads.includes(this)) PluginStores.delayed.loads.push(this);
|
if (!PluginStores.delayed.loads.includes(this)) PluginStores.delayed.loads.push(this);
|
||||||
}
|
}
|
||||||
|
@ -871,6 +873,7 @@ module.exports = (_ => {
|
||||||
loadingIconWrapper.appendChild(icon);
|
loadingIconWrapper.appendChild(icon);
|
||||||
};
|
};
|
||||||
BDFDB.PluginUtils.createSettingsPanel = function (addon, props) {
|
BDFDB.PluginUtils.createSettingsPanel = function (addon, props) {
|
||||||
|
if (!window.BDFDB_Global.loaded) return "Could not initiate BDFDB Library Plugin! Can not create Settings Panel!";
|
||||||
addon = addon == BDFDB && InternalBDFDB || addon;
|
addon = addon == BDFDB && InternalBDFDB || addon;
|
||||||
if (!BDFDB.ObjectUtils.is(addon)) return;
|
if (!BDFDB.ObjectUtils.is(addon)) return;
|
||||||
let settingsProps = props;
|
let settingsProps = props;
|
||||||
|
@ -7923,7 +7926,7 @@ module.exports = (_ => {
|
||||||
let pluginName = pluginQueue.shift();
|
let pluginName = pluginQueue.shift();
|
||||||
if (pluginName) BDFDB.TimeUtils.timeout(_ => BDFDB.BDUtils.reloadPlugin(pluginName));
|
if (pluginName) BDFDB.TimeUtils.timeout(_ => BDFDB.BDUtils.reloadPlugin(pluginName));
|
||||||
}
|
}
|
||||||
}, "Could not initiate library!"));
|
}, "Could not initiate Library!"));
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
loadLibrary(true);
|
loadLibrary(true);
|
||||||
|
|
Loading…
Reference in New Issue