Skip to content

Commit 4b598ac

Browse files
committed
Update live-view.js
1 parent 26b9421 commit 4b598ac

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

live-view/live-view.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1008,6 +1008,8 @@ async function renderLiveViewHTML(file) {
10081008
await workerInstallPromise;
10091009

10101010
}
1011+
1012+
if (!workerClientId) await workerInstallPromise;
10111013

10121014

10131015
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>';

0 commit comments

Comments
 (0)