diff options
| author | nsfisis <nsfisis@gmail.com> | 2025-03-17 22:48:49 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2025-03-17 22:48:49 +0900 |
| commit | c89f74b2bb1706fd95be234df3b085d7e6834f2a (patch) | |
| tree | 63f805434014ade0cbe68365a7a4cca423457dfb /src/exec_php.ts | |
| parent | 9a5924508cc91d61fb4c96957b8fe7f37fb23028 (diff) | |
| download | PHPerKaigi2025-tokens-c89f74b2bb1706fd95be234df3b085d7e6834f2a.tar.gz PHPerKaigi2025-tokens-c89f74b2bb1706fd95be234df3b085d7e6834f2a.tar.zst PHPerKaigi2025-tokens-c89f74b2bb1706fd95be234df3b085d7e6834f2a.zip | |
Diffstat (limited to 'src/exec_php.ts')
| -rw-r--r-- | src/exec_php.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/exec_php.ts b/src/exec_php.ts index 3c38cf4..ca76940 100644 --- a/src/exec_php.ts +++ b/src/exec_php.ts @@ -14,7 +14,7 @@ let fetchingWasmBinaryPromise: Promise<ArrayBuffer> | null = null; async function fetchWasmBinary(): Promise<ArrayBuffer> { if (!fetchingWasmBinaryPromise) { fetchingWasmBinaryPromise = new Promise((resolve, reject) => { - fetch("/php-wasm.wasm") + fetch(import.meta.env.BASE_URL + "/php-wasm.wasm") .then((res) => { if (!res.ok) { reject(`Failed to fetch wasm binary: ${res.status} (${res.url})`); |
