mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Fix classname = null exception by checking element parent node nullability before checking classname
This commit is contained in:
parent
f7c814d584
commit
8535534709
1 changed files with 1 additions and 1 deletions
|
|
@ -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