We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c9ee147 commit 9030668Copy full SHA for 9030668
live-view/live-view.js
@@ -617,8 +617,10 @@ if (isMobile) {
617
// create a new window with live view URL
618
const liveViewWindow = window.open(liveViewURL, '_blank');
619
620
- liveViewWindow.window.addEventListener('beforeunload', () => {
621
- console.log('[Live view] Closing window');
+ liveViewWindow.window.addEventListener('DOMContentLoaded', () => {
+ liveViewWindow.window.addEventListener('beforeunload', (e) => {
622
+ console.log('[Live view] Closing window', e);
623
+ });
624
});
625
626
0 commit comments