From d75a04ad4c53d4bce05ed0235b27f9157ae810b3 Mon Sep 17 00:00:00 2001 From: CrispyBaguette Date: Mon, 13 Dec 2021 08:27:50 +0100 Subject: [PATCH] Relative path to wasm file --- client/src/lib/Ditherer.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/lib/Ditherer.ts b/client/src/lib/Ditherer.ts index 2351227..b62b124 100644 --- a/client/src/lib/Ditherer.ts +++ b/client/src/lib/Ditherer.ts @@ -1,6 +1,6 @@ class Ditherer { async dither(image: Uint8ClampedArray): Promise { - const worker: any = await wasmWorker("/main.wasm"); + const worker: any = await wasmWorker("./main.wasm"); let output: Uint8ClampedArray; try { output = await worker.dither(image); -- 2.45.2