aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/exec_php.ts
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2025-03-17 22:48:49 +0900
committernsfisis <nsfisis@gmail.com>2025-03-17 22:48:49 +0900
commitc89f74b2bb1706fd95be234df3b085d7e6834f2a (patch)
tree63f805434014ade0cbe68365a7a4cca423457dfb /src/exec_php.ts
parent9a5924508cc91d61fb4c96957b8fe7f37fb23028 (diff)
downloadPHPerKaigi2025-tokens-c89f74b2bb1706fd95be234df3b085d7e6834f2a.tar.gz
PHPerKaigi2025-tokens-c89f74b2bb1706fd95be234df3b085d7e6834f2a.tar.zst
PHPerKaigi2025-tokens-c89f74b2bb1706fd95be234df3b085d7e6834f2a.zip
fix base path 2HEADmain
Diffstat (limited to 'src/exec_php.ts')
-rw-r--r--src/exec_php.ts2
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})`);