Update DisplayServersAsChannels.plugin.js

This commit is contained in:
Mirco Wittrien 2019-03-11 16:21:42 +01:00
parent f17d8520d7
commit 86c69f60f0
1 changed files with 2 additions and 2 deletions

View File

@ -3,7 +3,7 @@
class DisplayServersAsChannels {
getName () {return "DisplayServersAsChannels";}
getVersion () {return "1.2.0";}
getVersion () {return "1.2.1";}
getAuthor () {return "DevilBro";}
@ -277,7 +277,7 @@ class DisplayServersAsChannels {
if (avatar) {
avatar.innerHTML = `<span class="DevilBro-textscrollwrapper" speed=3><div class="DevilBro-textscroll">${BDFDB.encodeToHTML(info.name || info.folderName || "")}</div></span>`;
BDFDB.initElements(avatar, this);
if (info.features && info.features.has("VERIFIED") && !info.features.has("FAKE_VERIFIED")) {
if (info.features && info.features.has("VERIFIED") && !info.features.has("FAKE_VERIFIED") && !info.div.querySelector(".DSAC-verification-badge")) {
info.div.insertBefore(BDFDB.htmlToElement(this.verificationBadgeMarkup), info.div.firstElementChild);
}
}