mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Fix not getting revue newsletter url by checking all the hyper links in the table tr td
This commit is contained in:
parent
a058c7c4ab
commit
0cf689ce21
1 changed files with 2 additions and 2 deletions
|
|
@ -521,7 +521,7 @@ const beehiivNewsletterHref = (dom: Document): string | undefined => {
|
|||
}
|
||||
|
||||
const convertkitNewsletterHref = (dom: Document): string | undefined => {
|
||||
const readOnline = dom.querySelectorAll('table tr td div a')
|
||||
const readOnline = dom.querySelectorAll('table tr td a')
|
||||
let res: string | undefined = undefined
|
||||
readOnline.forEach((e) => {
|
||||
if (e.textContent === 'View this email in your browser') {
|
||||
|
|
@ -532,7 +532,7 @@ const convertkitNewsletterHref = (dom: Document): string | undefined => {
|
|||
}
|
||||
|
||||
const revueNewsletterHref = (dom: Document): string | undefined => {
|
||||
const viewOnline = dom.querySelectorAll('table tr td div a[target="_blank"]')
|
||||
const viewOnline = dom.querySelectorAll('table tr td a[target="_blank"]')
|
||||
let res: string | undefined = undefined
|
||||
viewOnline.forEach((e) => {
|
||||
if (e.textContent === 'View online') {
|
||||
|
|
|
|||
Loading…
Reference in a new issue