Its working now

This commit is contained in:
Surma
2021-05-18 20:02:43 +01:00
parent eb8204d69b
commit c417bd0a7a
3 changed files with 66 additions and 9 deletions

View File

@@ -21,6 +21,6 @@ export async function decode(
// Non-obvious way to turn an Blob into a ReadableStream
data: new Response(blob).body!,
});
const result = await decoder.decode();
return drawableToImageData(result.image);
const { image } = await decoder.decode();
return drawableToImageData(image);
}