This commit is contained in:
Mirco Wittrien 2020-09-28 16:31:56 +02:00
parent 8ce2d1aee1
commit 0e239e0a6e
2 changed files with 4 additions and 2 deletions

View File

@ -10,9 +10,10 @@ if (window.BDFDB && window.BDFDB.myPlugins && Object.keys(window.BDFDB.myPlugins
};
let downloadPlugins = _ => {
let plugins = Object.assign({}, window.BDFDB.myPlugins), i = 0;
for (let name in plugins) {
for (let name in plugins) if (plugins[name]) {
i++;
let last = i >= Object.keys(plugins).length;
clearTimeout(plugins[name].startTimeout);
setTimeout(_ => {
let url = typeof plugins[name].getRawUrl == "function" && typeof plugins[name].getRawUrl() == "string" ? plugins[name].getRawUrl() : `https://mwittrien.github.io/BetterDiscordAddons/Plugins/${name}/${name}.plugin.js`;
request(url, (error, response, body) => {

View File

@ -10,9 +10,10 @@ if (window.BDFDB && window.BDFDB.myPlugins && Object.keys(window.BDFDB.myPlugins
};
let downloadPlugins = _ => {
let plugins = Object.assign({}, window.BDFDB.myPlugins), i = 0;
for (let name in plugins) {
for (let name in plugins) if (plugins[name]) {
i++;
let last = i >= Object.keys(plugins).length;
clearTimeout(plugins[name].startTimeout);
setTimeout(_ => {
let url = typeof plugins[name].getRawUrl == "function" && typeof plugins[name].getRawUrl() == "string" ? plugins[name].getRawUrl() : `https://mwittrien.github.io/BetterDiscordAddons/Plugins/${name}/${name}.plugin.js`;
request(url, (error, response, body) => {