diff options
author | ManeraKai <manerakai@protonmail.com> | 2024-08-02 16:49:28 +0300 |
---|---|---|
committer | ManeraKai <manerakai@protonmail.com> | 2024-08-02 16:49:28 +0300 |
commit | 101e2eb89e21f6fecf8f2c39d26b29437fd180d4 (patch) | |
tree | 62f3828a4a03c421100c2815dcf78a217879101c /src | |
parent | Improved mobile support. Fixed https://github.com/libredirect/browser_extensi... (diff) | |
download | libredirect-101e2eb89e21f6fecf8f2c39d26b29437fd180d4.zip |
Closed popup after switching instance
Diffstat (limited to 'src')
-rw-r--r-- | src/pages/popup_src/components/Switch.svelte | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/pages/popup_src/components/Switch.svelte b/src/pages/popup_src/components/Switch.svelte index 42a86403..f3df9317 100644 --- a/src/pages/popup_src/components/Switch.svelte +++ b/src/pages/popup_src/components/Switch.svelte @@ -48,7 +48,10 @@ /> <SwitchInstanceIcon class="interactive" - on:click={async () => browser.tabs.update({ url: await servicesHelper.switchInstance(url, serviceKey) })} + on:click={async () => + browser.tabs.update({ url: await servicesHelper.switchInstance(url, serviceKey) }, () => { + window.close() + })} /> </div> </Row> |