Skip to content

Commit 0a564f6

Browse files
committed
Update live-view.js
1 parent 9030668 commit 0a564f6

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

live-view/live-view.js

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -615,13 +615,7 @@ if (isMobile) {
615615
const liveViewURL = livePath +'?'+ workerClientId +'/';
616616

617617
// create a new window with live view URL
618-
const liveViewWindow = window.open(liveViewURL, '_blank');
619-
620-
liveViewWindow.window.addEventListener('DOMContentLoaded', () => {
621-
liveViewWindow.window.addEventListener('beforeunload', (e) => {
622-
console.log('[Live view] Closing window', e);
623-
});
624-
});
618+
window.open(liveViewURL, '_blank');
625619

626620

627621
// close inline live view

0 commit comments

Comments
 (0)