Skip to content

Commit b204bca

Browse files
committed
Update live-view.js
1 parent aea1537 commit b204bca

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
@@ -1120,6 +1120,8 @@ async function renderLiveViewMarkdown(file) {
11201120
let html = marked.parse(decodeUnicode(file.content));
11211121
html = DOMPurify.sanitize(html);
11221122

1123+
frameDoc.head.innerHTML = '<base href="about:blank">';
1124+
11231125
frameDoc.body.style.display = 'none';
11241126
frameDoc.body.innerHTML = html;
11251127

0 commit comments

Comments
 (0)