Closed popup after switching instance

This commit is contained in:
ManeraKai 2024-08-02 16:49:28 +03:00
parent a9ecaf4ac0
commit 101e2eb89e
No known key found for this signature in database
GPG Key ID: 5ABC31FFD562E337

View File

@ -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>