From e88e1da2af533b7ed7ae68cff6185beed35cc56a Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Tue, 3 Aug 2021 12:22:06 +0100 Subject: [PATCH] Fix going full-screen when opening an external link in a modal --- packages/client/src/components/PeekScreenDisplay.svelte | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/packages/client/src/components/PeekScreenDisplay.svelte b/packages/client/src/components/PeekScreenDisplay.svelte index d2c71e2eaa..6d6e8c39c7 100644 --- a/packages/client/src/components/PeekScreenDisplay.svelte +++ b/packages/client/src/components/PeekScreenDisplay.svelte @@ -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() + } } $: {