diff --git a/src/components/IframeDrawer.vue b/src/components/IframeDrawer.vue index 6b5fb189..1c09624f 100644 --- a/src/components/IframeDrawer.vue +++ b/src/components/IframeDrawer.vue @@ -99,8 +99,10 @@ async function releaseIframeResources() { } function handleOpenInNewTab() { - if (iframeRef.value) + if (iframeRef.value) { window.open(iframeRef.value.contentWindow?.location.href.replace(/\/$/, ''), '_blank') + handleClose() + } } const isEscPressed = ref(false)