Skip to content

Commit c9ee147

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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

live-view/live-view.js

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

620-
liveViewWindow.addEventListener('beforeunload', () => {
620+
liveViewWindow.window.addEventListener('beforeunload', () => {
621621
console.log('[Live view] Closing window');
622622
});
623623

0 commit comments

Comments
 (0)