mirror of
https://github.com/BewlyBewly/BewlyBewly.git
synced 2025-04-14 13:15:29 +00:00
feat(iframe-drawer): close the drawer when open in new tab
This commit is contained in:
@@ -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<boolean>(false)
|
||||
|
||||
Reference in New Issue
Block a user