mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Add support for newsletters hosted on getrevue.co
This commit is contained in:
parent
2e77241044
commit
9599edb9fb
1 changed files with 8 additions and 0 deletions
|
|
@ -443,6 +443,14 @@ export const isProbablyNewsletter = async (html: string): Promise<boolean> => {
|
|||
}
|
||||
}
|
||||
|
||||
// Check if this is a newsletter from revue
|
||||
if (dom.querySelectorAll('img[src*="getrevue.co"]').length > 0) {
|
||||
const getrevueUrl = revueNewsletterHref(dom)
|
||||
if (getrevueUrl) {
|
||||
return true
|
||||
}
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue