mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Fix getting embeded class lists bug
This commit is contained in:
parent
76d47f7dc5
commit
2152a9e466
1 changed files with 1 additions and 1 deletions
|
|
@ -2288,7 +2288,7 @@ Readability.prototype = {
|
|||
return false;
|
||||
}
|
||||
|
||||
const classes = this.EMBEDS_CLASSES.reduce((res, cur) => `${res},.${cur}`, '');
|
||||
const classes = this.EMBEDS_CLASSES.reduce((res, cur, i) => `${i > 0 && (res + ',')}.${cur}`, '');
|
||||
|
||||
const candidates = element.querySelector(classes);
|
||||
return !!candidates;
|
||||
|
|
|
|||
Loading…
Reference in a new issue