Update BadgesEverywhere.plugin.js

This commit is contained in:
Mirco Wittrien 2018-12-11 20:43:10 +01:00
parent 1b6bccb15d
commit df4fe41a2e
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}
}
}