diff --git a/package.json b/package.json index 88ebf4f31b..c25f4137fc 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "BetterTTV", "author": "Night", - "version": "7.0.18", + "version": "7.0.19", "description": "BetterTTV enhances Twitch with new features, bug fixes, and reduced clutter.", "main": "betterttv.js", "scripts": { diff --git a/src/modules/chat/index.js b/src/modules/chat/index.js index 8bec1385a1..f8bce29c13 100644 --- a/src/modules/chat/index.js +++ b/src/modules/chat/index.js @@ -127,7 +127,7 @@ class ChatModule { if (node.nodeType === window.Node.ELEMENT_NODE && node.classList.contains('balloon-wrapper')) { const $emote = $(node); const $image = $emote.find('img'); - if (!$image) continue; + if (!$image.length) continue; const code = $image.attr('alt'); const id = ($image.attr('src').split('emoticons/v1/')[1] || '').split('/')[0]; const emote = channelEmotesTip.getEmote(id, code);