We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3b28c31 commit 4fbf779Copy full SHA for 4fbf779
1 file changed
live-view/live-view.js
@@ -1009,7 +1009,11 @@ async function renderLiveViewHTML(file) {
1009
1010
const liveFrame = liveView.querySelector('.live-frame');
1011
1012
- liveFrame.contentWindow.history.replaceState({}, 'Live view', livePath);
+ liveFrame.contentWindow.addEventListener('DOMContentLoaded', () => {
1013
+
1014
+ liveFrame.contentWindow.history.replaceState({}, 'Live view', livePath);
1015
1016
+ });
1017
1018
liveFrame.contentWindow.addEventListener('load', () => {
1019
0 commit comments