Update 0BDFDB.plugin.js
This commit is contained in:
parent
fd904fe87f
commit
637b24884c
|
@ -1104,7 +1104,7 @@ module.exports = (_ => {
|
||||||
libraryCSS = css;
|
libraryCSS = css;
|
||||||
|
|
||||||
const backupObj = getBackup(dataFileName, dataFilePath);
|
const backupObj = getBackup(dataFileName, dataFilePath);
|
||||||
if (backupObj.backup && backupObj.hashIsSame || true) parseData(backupObj.backup);
|
if (backupObj.backup && backupObj.hashIsSame) parseData(backupObj.backup);
|
||||||
else request.get(`https://mwittrien.github.io/BetterDiscordAddons/Library/_res/${dataFileName}`, (e, r, b) => {
|
else request.get(`https://mwittrien.github.io/BetterDiscordAddons/Library/_res/${dataFileName}`, (e, r, b) => {
|
||||||
if ((e || !b || r.statusCode != 200) && tryAgain) return BDFDB.TimeUtils.timeout(_ => requestLibraryData(), 10000);
|
if ((e || !b || r.statusCode != 200) && tryAgain) return BDFDB.TimeUtils.timeout(_ => requestLibraryData(), 10000);
|
||||||
if (!e && b && r.statusCode == 200) {
|
if (!e && b && r.statusCode == 200) {
|
||||||
|
|
Loading…
Reference in New Issue