*Wrap arrayBuffer in Uint8Array to standardize receiveUpdate input

This commit is contained in:
Derrick Hammer 2022-08-21 21:50:17 -04:00
parent bb8a5e5ac6
commit abc7a31e80
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 1 additions and 1 deletions

View File

@ -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());
});