aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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})`);