mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Dont allow puppeteer to fail if empty tag is found
This commit is contained in:
parent
742ff7aa69
commit
dc444a471d
1 changed files with 1 additions and 1 deletions
|
|
@ -590,7 +590,7 @@ async function retrieveHtml(page, logRecord) {
|
|||
|
||||
try {
|
||||
// Removing blurred images since they are mostly the copies of lazy loaded ones
|
||||
if (['img', 'image'].includes(el.tagName.toLowerCase())) {
|
||||
if (el.tagName && ['img', 'image'].includes(el.tagName.toLowerCase())) {
|
||||
const filter = style.getPropertyValue('filter');
|
||||
if (filter && filter.startsWith('blur')) {
|
||||
el.parentNode && el.parentNode.removeChild(el);
|
||||
|
|
|
|||
Loading…
Reference in a new issue