diff --git a/js/main.js b/js/main.js index 0e58afb..1e60a4c 100644 --- a/js/main.js +++ b/js/main.js @@ -300,13 +300,12 @@ QuickEmoteMenu.prototype.init = function (reload) { emoteBtn.show(); } - if(!reload) { - $(".emote-icon").on("click", function() { - var emote = $(this).attr("id"); - var ta = $(".channel-textarea-inner textarea"); - ta.val(ta.val().slice(-1) == " " ? ta.val() + emote : ta.val() + " " + emote); - }); - } + $(".emote-icon").off(); + $(".emote-icon").on("click", function() { + var emote = $(this).attr("id"); + var ta = $(".channel-textarea-inner textarea"); + ta.val(ta.val().slice(-1) == " " ? ta.val() + emote : ta.val() + " " + emote); + }); } QuickEmoteMenu.prototype.obsCallback = function() { diff --git a/js/quickemotemenu.js b/js/quickemotemenu.js index 9b88656..b0fe8ea 100644 --- a/js/quickemotemenu.js +++ b/js/quickemotemenu.js @@ -48,13 +48,12 @@ QuickEmoteMenu.prototype.init = function (reload) { emoteBtn.show(); } - if(!reload) { - $(".emote-icon").on("click", function() { - var emote = $(this).attr("id"); - var ta = $(".channel-textarea-inner textarea"); - ta.val(ta.val().slice(-1) == " " ? ta.val() + emote : ta.val() + " " + emote); - }); - } + $(".emote-icon").off(); + $(".emote-icon").on("click", function() { + var emote = $(this).attr("id"); + var ta = $(".channel-textarea-inner textarea"); + ta.val(ta.val().slice(-1) == " " ? ta.val() + emote : ta.val() + " " + emote); + }); } QuickEmoteMenu.prototype.obsCallback = function() {