Relative path to wasm file #6

Merged
CrispyBaguette merged 1 commits from CrispyBaguette-patch-1 into master 2021-12-13 07:28:37 +00:00
Showing only changes of commit d75a04ad4c - Show all commits

View File

@ -1,6 +1,6 @@
class Ditherer {
async dither(image: Uint8ClampedArray): Promise<Uint8ClampedArray> {
const worker: any = await wasmWorker("/main.wasm");
const worker: any = await wasmWorker("./main.wasm");
let output: Uint8ClampedArray;
try {
output = await worker.dither(image);