Skip to content

Commit

Permalink
Merge pull request #2 from ShaneXie/bugfix/danmu-not-show-without-bttv
Browse files Browse the repository at this point in the history
fix the problem that can’t find chat message in new twitch layout
  • Loading branch information
axe-me committed Feb 3, 2017
2 parents 6b6babc + 4743fae commit 9a55c5f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions app/js/content.js
Original file line number Diff line number Diff line change
Expand Up @@ -231,10 +231,8 @@
if ( numOfNodeAdded > 0) {
for (var i = 0; i < numOfNodeAdded; i++) {
var currNode= null;
if (mutation.addedNodes[i].className === 'ember-view') {
currNode = mutation.addedNodes[i].querySelector("li");
} else if (mutation.addedNodes[i].className === 'chat-line') {
//this is for bttv users

if ((mutation.addedNodes[i].className+'').indexOf('chat-line') > -1) {
currNode = mutation.addedNodes[i];
}
if (currNode) {
Expand Down
2 changes: 1 addition & 1 deletion app/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

"name": "Twitch Danmaku",
"description": "Display Twitch chat messages on streaming player.",
"version": "1.1.2",
"version": "1.1.3",

"icons": {
"16": "assets/icon-16.png",
Expand Down
Binary file modified twitchDanmaku.crx
Binary file not shown.

0 comments on commit 9a55c5f

Please sign in to comment.