Merge pull request #6 from CrispyBaguette/CrispyBaguette-patch-1
Relative path to wasm file
This commit is contained in:
commit
ad383330c4
@ -1,6 +1,6 @@
|
|||||||
class Ditherer {
|
class Ditherer {
|
||||||
async dither(image: Uint8ClampedArray): Promise<Uint8ClampedArray> {
|
async dither(image: Uint8ClampedArray): Promise<Uint8ClampedArray> {
|
||||||
const worker: any = await wasmWorker("/main.wasm");
|
const worker: any = await wasmWorker("./main.wasm");
|
||||||
let output: Uint8ClampedArray;
|
let output: Uint8ClampedArray;
|
||||||
try {
|
try {
|
||||||
output = await worker.dither(image);
|
output = await worker.dither(image);
|
||||||
|
Loading…
Reference in New Issue
Block a user