aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorManeraKai <manerakai@protonmail.com>2024-08-02 16:49:28 +0300
committerManeraKai <manerakai@protonmail.com>2024-08-02 16:49:28 +0300
commit101e2eb89e21f6fecf8f2c39d26b29437fd180d4 (patch)
tree62f3828a4a03c421100c2815dcf78a217879101c
parentImproved mobile support. Fixed https://github.com/libredirect/browser_extensi... (diff)
downloadlibredirect-101e2eb89e21f6fecf8f2c39d26b29437fd180d4.zip
Closed popup after switching instance
-rw-r--r--src/pages/popup_src/components/Switch.svelte5
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>