From a9f192ba7199578e496b43ac5bb805be9101e8df Mon Sep 17 00:00:00 2001 From: ManeraKai Date: Wed, 8 Feb 2023 09:52:06 +0300 Subject: [PATCH] Open settings automatically only after installation https://github.com/libredirect/libredirect/issues/625 --- src/pages/background/background.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/background/background.js b/src/pages/background/background.js index 7f772e1..25f1fad 100644 --- a/src/pages/background/background.js +++ b/src/pages/background/background.js @@ -13,6 +13,7 @@ browser.runtime.onInstalled.addListener(async details => { if (!(await utils.getOptions())) { await servicesHelper.initDefaults() } + browser.runtime.openOptionsPage() } else if (details.reason == "update") { if (details.previousVersion == '2.3.4') { @@ -21,7 +22,6 @@ browser.runtime.onInstalled.addListener(async details => { await servicesHelper.processUpdate() } } - browser.runtime.openOptionsPage() } })