Skip to content

Commit c5564cf

Browse files
committed
Update live-view.js
1 parent 7031921 commit c5564cf

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

live-view/live-view.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -618,7 +618,11 @@ if (isMobile) {
618618
const liveViewWindow = window.open(liveViewURL, '_blank');
619619

620620
// replace URL in window address bar
621-
liveViewWindow.window.history.replaceState({}, 'Codeit', window.location.origin + '/run');
621+
liveViewWindow.addEventListener('DOMContentLoaded', () => {
622+
623+
liveViewWindow.window.history.replaceState({}, 'Codeit', window.location.origin + '/run');
624+
625+
});
622626

623627

624628
// close inline live view

0 commit comments

Comments
 (0)