Skip to content

Commit be708f7

Browse files
fix(demo): example python code not parsed in production.
1 parent 5d1cb42 commit be708f7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

demo/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ el.btn.addEventListener('click', () => PythonWorker.run(Editor.getCode()));
236236
loadIcons();
237237
PythonWorker.load();
238238

239-
fetch(`./${EXAMPLE_FILE}`, FETCH_OPTS ?? {}).then(r => {
239+
fetch(`/${EXAMPLE_FILE}`, FETCH_OPTS ?? {}).then(r => {
240240
if (!r.ok) throw new Error(`HTTP ${r.status}`);
241241
return r.text();
242242
}).then(code => {

0 commit comments

Comments
 (0)