Check the correct node when looking for detecting omnivore nodes

This commit is contained in:
Jackson Harper 2022-11-01 10:31:50 +08:00
parent 392ac15a62
commit 4afd598ada

View file

@ -2800,7 +2800,7 @@ Readability.prototype = {
var walk = node
while (walk) {
if (walk.className && node.className.startsWith("_omnivore")) {
if (walk.className && walk.className.startsWith("_omnivore")) {
return true
}
walk = walk.parentElement