From df4fe41a2e144f3ac6db8049e8bca8961a0b9ca2 Mon Sep 17 00:00:00 2001 From: Mirco Wittrien Date: Tue, 11 Dec 2018 20:43:10 +0100 Subject: [PATCH] Update BadgesEverywhere.plugin.js --- Plugins/BadgesEverywhere/BadgesEverywhere.plugin.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Plugins/BadgesEverywhere/BadgesEverywhere.plugin.js b/Plugins/BadgesEverywhere/BadgesEverywhere.plugin.js index 17653c19f6..5dd2cca189 100644 --- a/Plugins/BadgesEverywhere/BadgesEverywhere.plugin.js +++ b/Plugins/BadgesEverywhere/BadgesEverywhere.plugin.js @@ -295,7 +295,6 @@ class BadgesEverywhere { let badgewrapper = document.createElement("span"); badgewrapper.className = `BE-badges ${settings.useColoredVersion ? BDFDB.disCN.userprofiletopsectionnormal : BDFDB.disCN.userprofiletopsectionplaying}`; badgewrapper.setAttribute("style", "all: unset !important;"); - memberwrap.appendChild(badgewrapper); for (let flag in this.badges) { if ((this.loadedusers[id].flags | flag) == this.loadedusers[id].flags && !blacklist[flag]) { let badge = document.createElement("div"); @@ -306,6 +305,7 @@ class BadgesEverywhere { }); } } + if (badgewrapper.firstChild) memberwrap.appendChild(badgewrapper); } } } \ No newline at end of file