From 4afd598ada4df6c06176974b4c4c3e3a581f15ab Mon Sep 17 00:00:00 2001 From: Jackson Harper Date: Tue, 1 Nov 2022 10:31:50 +0800 Subject: [PATCH] Check the correct node when looking for detecting omnivore nodes --- packages/readabilityjs/Readability.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/readabilityjs/Readability.js b/packages/readabilityjs/Readability.js index 163200f9f..b60382caf 100644 --- a/packages/readabilityjs/Readability.js +++ b/packages/readabilityjs/Readability.js @@ -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