From e454c4026a43f879d32265c2fd04061d89a8f995 Mon Sep 17 00:00:00 2001 From: Mirco Wittrien Date: Tue, 6 Sep 2022 18:54:15 +0200 Subject: [PATCH] Update 0BDFDB.plugin.js --- Library/0BDFDB.plugin.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Library/0BDFDB.plugin.js b/Library/0BDFDB.plugin.js index be6df3dad9..829a893947 100644 --- a/Library/0BDFDB.plugin.js +++ b/Library/0BDFDB.plugin.js @@ -569,7 +569,7 @@ module.exports = (_ => { BDFDB.PluginUtils.checkUpdate(plugin.name, url); - if (plugin.changeLog && typeof plugin.getSettingsPanel != "function") plugin.getSettingsPanel = _ => BDFDB.PluginUtils.createSettingsPanel(plugin, { + if (plugin.changeLog && !BDFDB.ObjectUtils.isEmpty(plugin.changeLog) && typeof plugin.getSettingsPanel != "function") plugin.getSettingsPanel = _ => BDFDB.PluginUtils.createSettingsPanel(plugin, { children: BDFDB.ReactUtils.createElement(Internal.LibraryComponents.MessagesPopoutComponents.EmptyStateBottom, { msg: "No Settings available for this Plugin", image: BDFDB.DiscordUtils.getTheme() == BDFDB.disCN.themelight ? "/assets/9b0d90147f7fab54f00dd193fe7f85cd.svg" : "/assets/308e587f3a68412f137f7317206e92c2.svg" @@ -1137,6 +1137,7 @@ module.exports = (_ => { 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) { + if (backupObj.backup.replace(/\s/g, "") == b.replace(/\s/g, "")) console.log("yes"); if (backupObj.backup && backupObj.backup.replace(/\s/g, "") == b.replace(/\s/g, "")) { libHashes[dataFileName] = oldLibHashes[dataFileName]; BDFDB.DataUtils.save(libHashes, BDFDB, "hashes");