Merge pull request #6 from CrispyBaguette/CrispyBaguette-patch-1

Relative path to wasm file
This commit is contained in:
CrispyBaguette 2021-12-13 08:28:37 +01:00 committed by GitHub
commit ad383330c4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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);