Fixed regression causing manual NoScript downgrades to be delayed until manual restart.

This commit is contained in:
hackademix 2020-08-18 12:47:07 +02:00
parent 2410d373ce
commit 5ef6980d56
1 changed files with 5 additions and 5 deletions

View File

@ -165,12 +165,12 @@ var LifeCycle = (() => {
},
async onUpdateAvailable(details) {
await include("/lib/Ver.js");
if (Ver.is(details.version, "<", browser.runtime.getManifest().version)) {
// downgrade: temporary survival might not be supported, and we don't care
return;
}
try {
await include("/lib/Ver.js");
if (Ver.is(details.version, "<", browser.runtime.getManifest().version)) {
// downgrade: temporary survival might not be supported, and we don't care
return;
}
await SurvivalTab.createAndStore();
} catch (e) {
console.error(e);