Ver código fonte

commentTable needs to be an element, not a nodelist

tags/v0.7.0
Jonathan Cobb 5 anos atrás
pai
commit
cf905c79a2
1 arquivos alterados com 2 adições e 0 exclusões
  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 Ver arquivo

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


Carregando…
Cancelar
Salvar