mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
querySelectorAll returns a NodeList which we can iterate
This commit is contained in:
parent
4afd598ada
commit
9b29a3c261
1 changed files with 1 additions and 3 deletions
|
|
@ -98,9 +98,7 @@ export class SubstackHandler extends ContentHandler {
|
|||
|
||||
fixupStaticTweets(dom: Document): Document {
|
||||
const preClassName = '_omnivore-static-'
|
||||
const staticTweets = Array.from(
|
||||
dom.querySelectorAll('div[class="tweet static"]')
|
||||
)
|
||||
const staticTweets = dom.querySelectorAll('div[class="tweet static"]')
|
||||
|
||||
if (staticTweets.length < 1) {
|
||||
return dom
|
||||
|
|
|
|||
Loading…
Reference in a new issue