Skip to content

Commit

Permalink
Closed popup after switching instance
Browse files Browse the repository at this point in the history
  • Loading branch information
ManeraKai committed Aug 2, 2024
1 parent a9ecaf4 commit 101e2eb
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/pages/popup_src/components/Switch.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit 101e2eb

Please sign in to comment.