*Wrap arrayBuffer in Uint8Array to standardize receiveUpdate input
This commit is contained in:
parent
bb8a5e5ac6
commit
abc7a31e80
|
@ -319,7 +319,7 @@ export default class IpfsProvider extends BaseProvider {
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
cachedPage.data.arrayBuffer().then((data: ArrayBuffer) => {
|
cachedPage.data.arrayBuffer().then((data: ArrayBuffer) => {
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
receiveUpdate(data)?.then(() => {
|
receiveUpdate(new Uint8Array(data))?.then(() => {
|
||||||
handleBuffer();
|
handleBuffer();
|
||||||
filterPromise.then(() => filter.close());
|
filterPromise.then(() => filter.close());
|
||||||
});
|
});
|
||||||
|
|
Reference in New Issue