Open settings automatically only after installation https://github.com/libredirect/libredirect/issues/625
This commit is contained in:
parent
4983a7ad9f
commit
a9f192ba71
|
@ -13,6 +13,7 @@ browser.runtime.onInstalled.addListener(async details => {
|
||||||
if (!(await utils.getOptions())) {
|
if (!(await utils.getOptions())) {
|
||||||
await servicesHelper.initDefaults()
|
await servicesHelper.initDefaults()
|
||||||
}
|
}
|
||||||
|
browser.runtime.openOptionsPage()
|
||||||
}
|
}
|
||||||
else if (details.reason == "update") {
|
else if (details.reason == "update") {
|
||||||
if (details.previousVersion == '2.3.4') {
|
if (details.previousVersion == '2.3.4') {
|
||||||
|
@ -21,7 +22,6 @@ browser.runtime.onInstalled.addListener(async details => {
|
||||||
await servicesHelper.processUpdate()
|
await servicesHelper.processUpdate()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
browser.runtime.openOptionsPage()
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue