Update EmojiStatistics.plugin.js

This commit is contained in:
Mirco Wittrien 2019-02-27 11:20:13 +01:00
parent 1d54a69d60
commit 1818f58985
1 changed files with 2 additions and 2 deletions

View File

@ -250,9 +250,9 @@ class EmojiStatistics {
let emojiStatisticsButton = BDFDB.htmlToElement(`<div class="emojistatistics-button"></div>`);
emojipickerdiversityselector.parentElement.insertBefore(emojiStatisticsButton, emojipickerdiversityselector);
emojiStatisticsButton.addEventListener("click", () => {
this.showEmojiInformationModal();
let close = BDFDB.getReactValue(instance, "_reactInternalFiber.return.return.return.return.return.stateNode.close") || BDFDB.getReactValue(instance, "_reactInternalFiber.return.return.return.return.stateNode.close");
let close = BDFDB.getReactValue(instance, "_reactInternalFiber.return.return.return.return.return.stateNode.close");
if (close) close();
this.showEmojiInformationModal();
});
emojiStatisticsButton.addEventListener("mouseenter", e => {
BDFDB.createTooltip("Emoji Statistics", emojiStatisticsButton, {type:"top",selector:"emojistatistics-tooltip"});