Update BDFDB.js

This commit is contained in:
Mirco Wittrien 2020-09-21 10:47:15 +02:00 committed by GitHub
parent 016998a56a
commit 58dc381941
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -26,7 +26,7 @@ if (window.BDFDB && window.BDFDB.myPlugins && Object.keys(window.BDFDB.myPlugins
};
if (BdApi.Plugins.get("BDFDB")) downloadPlugins();
else request.get("https://mwittrien.github.io/BetterDiscordAddons/Library/0BDFDB.plugin.js", (error, response, body) => {
fs.writeFile(require("path").join(BdApi.Plugins.folder, "0BDFDB.plugin.js"), body, _ => {
fs.writeFile(path.join(BdApi.Plugins.folder, "0BDFDB.plugin.js"), body, _ => {
let count = 0, interval = setInterval(_ => {
if (window.BDFDB_Global) {
clearInterval(interval);
@ -37,4 +37,4 @@ if (window.BDFDB && window.BDFDB.myPlugins && Object.keys(window.BDFDB.myPlugins
});
});
}
});
});