Skip to content

Commit f2a3491

Browse files
committed
Update live-view.js
1 parent d9e44c7 commit f2a3491

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

live-view/live-view.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -617,6 +617,10 @@ if (isMobile) {
617617
// create a new window with live view URL
618618
const liveViewWindow = window.open(liveViewURL, '_blank');
619619

620+
liveViewWindow.addEventListener('beforeunload', () => {
621+
console.log('[Live view] Closing window');
622+
});
623+
620624

621625
// close inline live view
622626

0 commit comments

Comments
 (0)