Skip to content

Commit

Permalink
fixes default emote balloon check
Browse files Browse the repository at this point in the history
  • Loading branch information
night committed Jul 12, 2017
1 parent 91e8ab7 commit 18721de
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down
2 changes: 1 addition & 1 deletion src/modules/chat/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 18721de

Please sign in to comment.