1
0
Fork 0
mirror of synced 2024-10-02 18:16:29 +13:00

Fix going full-screen when opening an external link in a modal

This commit is contained in:
Andrew Kingston 2021-08-03 12:22:06 +01:00
parent 2eba603ad8
commit e88e1da2af

View file

@ -50,8 +50,12 @@
}
const handleFullscreen = () => {
routeStore.actions.navigate($peekStore.url)
handleCancel()
if ($peekStore.external) {
window.location = $peekStore.href
} else {
routeStore.actions.navigate($peekStore.url)
handleCancel()
}
}
$: {