Skip to content

Commit f88d98b

Browse files
committed
Update live-view.js
1 parent f23ac76 commit f88d98b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

live-view/live-view.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1004,6 +1004,9 @@ async function renderLiveViewHTML(file) {
10041004
liveView.innerHTML = '<iframe src="'+ livePath +'?'+ workerClientId +'" name="Live view" title="Live view" class="live-frame" allow="accelerometer; camera; encrypted-media; display-capture; geolocation; gyroscope; microphone; midi; clipboard-read; clipboard-write" allowfullscreen="true" allowpaymentrequest="true" loading="lazy" sandbox="allow-downloads allow-forms allow-modals allow-pointer-lock allow-popups allow-presentation allow-same-origin allow-scripts allow-top-navigation-by-user-activation" scrolling="yes" frameborder="0"></iframe>';
10051005

10061006

1007+
liveFile = file;
1008+
1009+
10071010
const liveFrame = liveView.querySelector('.live-frame');
10081011

10091012
liveFrame.contentWindow.history.replaceState({}, 'Live view', livePath);
@@ -1014,9 +1017,6 @@ async function renderLiveViewHTML(file) {
10141017

10151018
});
10161019

1017-
1018-
liveFile = file;
1019-
10201020
}
10211021

10221022

0 commit comments

Comments
 (0)