Skip to content

Commit a09b807

Browse files
committed
Update live-view.js
1 parent 7387981 commit a09b807

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

live-view/live-view.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1196,12 +1196,17 @@ async function renderLiveViewMarkdown(file) {
11961196

11971197
await loadScript(window.location.origin + '/lib/prism.js', frameDoc.body);
11981198

1199+
11991200
let s = document.createElement('script');
1201+
12001202
s.appendChild(document.createTextNode(`Prism.plugins.autoloader.languages_path = 'https://cdnjs.cloudflare.com/ajax/libs/prism/1.28.0/components/'`));
1203+
1204+
frameDoc.body.appendChild(s);
1205+
12011206
onNextFrame(() => {
12021207
frameDoc.body.removeChild(s);
12031208
});
1204-
frameDoc.body.appendChild(s);
1209+
12051210

12061211
await loadScript(window.location.origin + '/lib/codeit.js', frameDoc.body);
12071212

0 commit comments

Comments
 (0)