From abc7a31e806b06848c7759aa796ca6a27cdf0dc4 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Sun, 21 Aug 2022 21:50:17 -0400 Subject: [PATCH] *Wrap arrayBuffer in Uint8Array to standardize receiveUpdate input --- src/contentProviders/ipfsProvider.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/contentProviders/ipfsProvider.ts b/src/contentProviders/ipfsProvider.ts index 3de77e5..b175a71 100644 --- a/src/contentProviders/ipfsProvider.ts +++ b/src/contentProviders/ipfsProvider.ts @@ -319,7 +319,7 @@ export default class IpfsProvider extends BaseProvider { // @ts-ignore cachedPage.data.arrayBuffer().then((data: ArrayBuffer) => { // @ts-ignore - receiveUpdate(data)?.then(() => { + receiveUpdate(new Uint8Array(data))?.then(() => { handleBuffer(); filterPromise.then(() => filter.close()); });