Skip to content

Commit 4fbf779

Browse files
committed
Update live-view.js
1 parent 3b28c31 commit 4fbf779

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
@@ -1009,7 +1009,11 @@ async function renderLiveViewHTML(file) {
10091009

10101010
const liveFrame = liveView.querySelector('.live-frame');
10111011

1012-
liveFrame.contentWindow.history.replaceState({}, 'Live view', livePath);
1012+
liveFrame.contentWindow.addEventListener('DOMContentLoaded', () => {
1013+
1014+
liveFrame.contentWindow.history.replaceState({}, 'Live view', livePath);
1015+
1016+
});
10131017

10141018
liveFrame.contentWindow.addEventListener('load', () => {
10151019

0 commit comments

Comments
 (0)