Fixed configuration upgrades not applied on manual updates (thanks Nan for reporting).
This commit is contained in:
parent
1bfc51226c
commit
354dbeabbd
|
@ -219,14 +219,16 @@ var LifeCycle = (() => {
|
|||
}
|
||||
|
||||
let {reason, previousVersion} = details;
|
||||
if (reason !== "update") return;
|
||||
|
||||
try {
|
||||
await LifeBoat.retrieveAndDestroy();
|
||||
} catch (e) {
|
||||
error(e);
|
||||
if (reason === "update") {
|
||||
try {
|
||||
await LifeBoat.retrieveAndDestroy();
|
||||
} catch (e) {
|
||||
error(e);
|
||||
}
|
||||
}
|
||||
|
||||
if (!previousVersion) return;
|
||||
|
||||
await include("/lib/Ver.js");
|
||||
previousVersion = new Ver(previousVersion);
|
||||
let currentVersion = new Ver(browser.runtime.getManifest().version);
|
||||
|
|
Loading…
Reference in New Issue