aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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>