Update 0BDFDB.plugin.js
This commit is contained in:
parent
213c0079cf
commit
3dcbdc768a
|
@ -511,7 +511,10 @@ module.exports = (_ => {
|
||||||
}
|
}
|
||||||
}, config, window.BDFDB_Global);
|
}, config, window.BDFDB_Global);
|
||||||
|
|
||||||
|
|
||||||
|
const loadLibrary = tryAgain => {
|
||||||
require("request").get("https://mwittrien.github.io/BetterDiscordAddons/Library/_res/BDFDB.data.json", BDFDB.TimeUtils.suppress((error, response, body) => {
|
require("request").get("https://mwittrien.github.io/BetterDiscordAddons/Library/_res/BDFDB.data.json", BDFDB.TimeUtils.suppress((error, response, body) => {
|
||||||
|
if ((error || !body) && tryAgain) return BDFDB.TimeUtils.timeout(_ => {loadLibrary();}, 10000);
|
||||||
const InternalData = JSON.parse(body);
|
const InternalData = JSON.parse(body);
|
||||||
|
|
||||||
BDFDB.ObserverUtils = {};
|
BDFDB.ObserverUtils = {};
|
||||||
|
@ -7448,7 +7451,9 @@ module.exports = (_ => {
|
||||||
while (PluginStores.delayedLoad.length) PluginStores.delayedLoad.shift().load();
|
while (PluginStores.delayedLoad.length) PluginStores.delayedLoad.shift().load();
|
||||||
while (PluginStores.delayedStart.length) PluginStores.delayedStart.shift().start();
|
while (PluginStores.delayedStart.length) PluginStores.delayedStart.shift().start();
|
||||||
while (pluginQueue.length) BDFDB.BDUtils.reloadPlugin(pluginQueue.shift());
|
while (pluginQueue.length) BDFDB.BDUtils.reloadPlugin(pluginQueue.shift());
|
||||||
}, "Could not initiate library!", config.name));
|
}, "Could not initiate library!", config.name))
|
||||||
|
};
|
||||||
|
loadLibrary(true);
|
||||||
|
|
||||||
return class BDFDB_Frame {
|
return class BDFDB_Frame {
|
||||||
getName () {return config.name;}
|
getName () {return config.name;}
|
||||||
|
|
Loading…
Reference in New Issue