Skip to content

Commit b81a29f

Browse files
Fix URL of stdlib files
1 parent 78cf8c3 commit b81a29f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

www/runtime.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@ import ghc_wasm_jsffi from "./ghc_wasm_jsffi.js";
44
export async function runWASM() {
55
const addLibFile = async (name, result) => {
66
// 1. Fetch some file (or files) from your server or CDN
7-
const filename = "/stdlib/" + name + ".disco";
8-
const resp = await fetch(filename);
7+
const urlpath = "stdlib/" + name + ".disco";
8+
const filename = "/" + urlpath;
9+
const resp = await fetch(urlpath);
910
const buf = await resp.arrayBuffer();
1011

1112
result[filename] = {

0 commit comments

Comments
 (0)