Open settings automatically only after installation https://github.com/libredirect/libredirect/issues/625

This commit is contained in:
ManeraKai 2023-02-08 09:52:06 +03:00
parent 4983a7ad9f
commit a9f192ba71
No known key found for this signature in database
GPG Key ID: 5ABC31FFD562E337
1 changed files with 1 additions and 1 deletions

View File

@ -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()
} }
}) })