mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Default parent classes being an empty array
This commit is contained in:
parent
4bedfd2abe
commit
ce44c8e529
1 changed files with 1 additions and 1 deletions
|
|
@ -2785,7 +2785,7 @@ Readability.prototype = {
|
|||
return false;
|
||||
}
|
||||
|
||||
var parentClasses = node.parentNode.classList;
|
||||
var parentClasses = node.parentNode?.classList || [];
|
||||
var haveToRemove =
|
||||
!this._isOmnivoreNode(node) && (
|
||||
(img > 1 && p / img < 0.5 && !this._hasAncestorTag(node, "figure")) ||
|
||||
|
|
|
|||
Loading…
Reference in a new issue