Fix going full-screen when opening an external link in a modal
This commit is contained in:
parent
2eba603ad8
commit
e88e1da2af
|
@ -50,9 +50,13 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
const handleFullscreen = () => {
|
const handleFullscreen = () => {
|
||||||
|
if ($peekStore.external) {
|
||||||
|
window.location = $peekStore.href
|
||||||
|
} else {
|
||||||
routeStore.actions.navigate($peekStore.url)
|
routeStore.actions.navigate($peekStore.url)
|
||||||
handleCancel()
|
handleCancel()
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
$: {
|
$: {
|
||||||
if (iframe && !listenersAttached) {
|
if (iframe && !listenersAttached) {
|
||||||
|
|
Loading…
Reference in New Issue