querySelectorAll returns a NodeList which we can iterate

This commit is contained in:
Jackson Harper 2022-11-01 10:34:18 +08:00
parent 4afd598ada
commit 9b29a3c261

View file

@ -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