mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
fix not saving loqseq weekly newsletter due to no url
This commit is contained in:
parent
badd32ed39
commit
345c020dea
1 changed files with 5 additions and 8 deletions
|
|
@ -452,14 +452,11 @@ export const isProbablyNewsletter = async (html: string): Promise<boolean> => {
|
|||
}
|
||||
|
||||
// Check if this is a convertkit.com newsletter
|
||||
if (dom.querySelectorAll('img[src*="convertkit-mail.com"]').length > 0) {
|
||||
const convertkitUrl = convertkitNewsletterHref(dom)
|
||||
if (convertkitUrl) {
|
||||
return true
|
||||
}
|
||||
}
|
||||
|
||||
return false
|
||||
return (
|
||||
dom.querySelectorAll(
|
||||
'img[src*="convertkit.com"], img[src*="convertkit-mail.com"]'
|
||||
).length > 0
|
||||
)
|
||||
}
|
||||
|
||||
const beehiivNewsletterHref = (dom: Document): string | undefined => {
|
||||
|
|
|
|||
Loading…
Reference in a new issue