Fixed regression causing manual NoScript downgrades to be delayed until manual restart.
This commit is contained in:
parent
2410d373ce
commit
5ef6980d56
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue