Make addons code remove a BoxError

This commit is contained in:
Girish Ramakrishnan
2019-12-04 13:17:58 -08:00
parent c992853cca
commit 53e39f571c
8 changed files with 154 additions and 177 deletions

View File

@@ -105,8 +105,8 @@ function checkAppUpdates(callback) {
return iteratorDone();
}
const updateIsBlocked = apps.canAutoupdateApp(app, updateInfo.manifest);
if (autoupdatesEnabled && !updateIsBlocked) return iteratorDone();
const canAutoupdateApp = apps.canAutoupdateApp(app, updateInfo.manifest);
if (autoupdatesEnabled && canAutoupdateApp) return iteratorDone();
debug('Notifying of app update for %s from %s to %s', app.id, app.manifest.version, updateInfo.manifest.version);
notificationPending.push({