Fixed bug where on firefox the options upgrader was being ran more than once
This commit is contained in:
parent
b3beccd998
commit
c60e6f2c52
|
@ -33,9 +33,13 @@ browser.runtime.onInstalled.addListener(details => {
|
|||
switch (details.previousVersion) {
|
||||
case "2.2.0":
|
||||
case "2.2.1":
|
||||
browser.storage.local.get("options", async r => {
|
||||
if (!r.options) {
|
||||
await generalHelper.initDefaults()
|
||||
await servicesHelper.initDefaults()
|
||||
await servicesHelper.upgradeOptions()
|
||||
}
|
||||
})
|
||||
break
|
||||
default:
|
||||
await servicesHelper.processUpdate()
|
||||
|
|
Loading…
Reference in New Issue