Update EmojiStatistics.plugin.js

This commit is contained in:
Mirco Wittrien 2018-12-05 14:32:22 +01:00
parent 51716fde4e
commit 40dbd636aa
1 changed files with 4 additions and 4 deletions

View File

@ -159,7 +159,7 @@ class EmojiStatistics {
getDescription () {return "Adds some helpful options to show you more information about emojis and emojiservers.";} getDescription () {return "Adds some helpful options to show you more information about emojis and emojiservers.";}
getVersion () {return "2.7.6";} getVersion () {return "2.7.7";}
getAuthor () {return "DevilBro";} getAuthor () {return "DevilBro";}
@ -302,10 +302,10 @@ class EmojiStatistics {
} }
addEmojiInformationButton (node) { addEmojiInformationButton (node) {
$(node).find(BDFDB.dotCN.emojipickerheader) $(this.emojiButtonMarkup)
.append(this.emojiButtonMarkup) .insertBefore(node.querySelector(BDFDB.dotCN.emojipickerdiversityselector))
.off("click." + this.getName()) .off("click." + this.getName())
.on("click." + this.getName(), ".emojistatistics-button", () => { .on("click." + this.getName(), () => {
$(node).hide(); $(node).hide();
this.showEmojiInformationModal(); this.showEmojiInformationModal();
}); });