Skip to content

Commit d7bb3ca

Browse files
committed
Update live-view.js
1 parent 8816ad0 commit d7bb3ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

live-view/live-view.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1098,7 +1098,7 @@ async function renderLiveViewMarkdown(file) {
10981098
}
10991099

11001100

1101-
liveView.innerHTML = '<iframe src="" name="Live view" title="Live view" style="background: hsl(228deg 16% 12%);" class="live-frame" loading="lazy" scrolling="yes" frameborder="0"></iframe>';
1101+
liveView.innerHTML = '<iframe srcdoc="<!DOCTYPE html><html><head></head><body></body></html>" name="Live view" title="Live view" style="background: hsl(228deg 16% 12%);" class="live-frame" loading="lazy" scrolling="yes" frameborder="0"></iframe>';
11021102

11031103
const liveFrame = liveView.querySelector('.live-frame');
11041104
const frameDoc = liveFrame.contentDocument;

0 commit comments

Comments
 (0)