mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Merge pull request #812 from omnivore-app/fix/content-parse
Fix parsing error
This commit is contained in:
commit
8f1bf6c813
2 changed files with 3 additions and 2 deletions
|
|
@ -36,6 +36,7 @@
|
|||
"typescript": "^4.4.3"
|
||||
},
|
||||
"volta": {
|
||||
"node": "14.18.1"
|
||||
"node": "14.18.1",
|
||||
"yarn": "1.22.19"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -2235,7 +2235,7 @@ Readability.prototype = {
|
|||
if (tweetParent && tweetParent.className.includes('twitter-tweet')) {
|
||||
tweetParent.parentNode.replaceChild(tweet, tweetParent);
|
||||
}
|
||||
} else if (element.parentNode.className === 'tweet') {
|
||||
} else if (element.parentNode && element.parentNode.className === 'tweet') {
|
||||
// Create tweets placeholders from classname
|
||||
try {
|
||||
const response = await axios.get(link);
|
||||
|
|
|
|||
Loading…
Reference in a new issue