Browse Source

commentTable needs to be an element, not a nodelist

tags/v0.7.0
Jonathan Cobb 4 years ago
parent
commit
cf905c79a2
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      bubble-server/src/main/resources/bubble/rule/social/block/site/HackerNews.js.hbs

+ 2
- 0
bubble-server/src/main/resources/bubble/rule/social/block/site/HackerNews.js.hbs View File

@@ -6,6 +6,8 @@ function {{JS_PREFIX}}_apply_blocks(blocked_users) {
if (commentTable === null) {
console.warn('commentTable not found and hnmain table not found, not filtering');
return;
} else {
commentTable = commentTable[0];
}
}
const comments = commentTable.querySelectorAll('tr');


Loading…
Cancel
Save