Update 0BDFDB.plugin.js
This commit is contained in:
parent
3fb86261b4
commit
e454c4026a
|
@ -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");
|
||||
|
|
Loading…
Reference in New Issue