Skip to content

Commit

Permalink
install jsdom nodejs package for reader mode too
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Rotter committed Mar 16, 2022
1 parent 2222043 commit 0b71248
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/librssguard/network-web/readability.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ void Readability::makeHtmlReadable(const QString& html, const QString& base_url)
try {
NodeJs::PackageStatus stReadability = qApp->nodejs()->packageStatus({ QSL(READABILITY_PACKAGE),
QSL(READABILITY_VERSION) });
NodeJs::PackageStatus stJsdom = qApp->nodejs()->packageStatus({ QSL(READABILITY_PACKAGE),
QSL(READABILITY_VERSION) });
NodeJs::PackageStatus stJsdom = qApp->nodejs()->packageStatus({ QSL(JSDOM_PACKAGE),
QSL(JSDOM_VERSION) });

if (stReadability != NodeJs::PackageStatus::UpToDate ||
stJsdom != NodeJs::PackageStatus::UpToDate) {
Expand All @@ -85,7 +85,8 @@ void Readability::makeHtmlReadable(const QString& html, const QString& base_url)
"You will be notified when installation is complete.").arg(QSL(APP_NAME)),
QSystemTrayIcon::MessageIcon::Warning },
{ true, true, false });
qApp->nodejs()->installPackages({ { QSL(READABILITY_PACKAGE), QSL(READABILITY_VERSION) } });
qApp->nodejs()->installPackages({ { QSL(READABILITY_PACKAGE), QSL(READABILITY_VERSION) },
{ QSL(JSDOM_PACKAGE), QSL(JSDOM_VERSION) } });
}

return;
Expand Down

0 comments on commit 0b71248

Please sign in to comment.