From ed3f0a6f038df608a59ac2420e02cac43a7b43cb Mon Sep 17 00:00:00 2001 From: Sam Carlton Date: Tue, 19 Jul 2022 21:33:38 -0500 Subject: [PATCH] Revert FileInstance.arrayBuffer to node style --- helpers/scanner/client.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/helpers/scanner/client.js b/helpers/scanner/client.js index c5431f3..c3c7fc1 100644 --- a/helpers/scanner/client.js +++ b/helpers/scanner/client.js @@ -118,9 +118,9 @@ export class AppScan { return new Promise( async ( resolve, reject ) => { // Check if file is a Blob, typically in the Browser // otherwise convert it to a Blob, like in Node - const FileBlob = FileInstance instanceof Blob ? FileInstance : new bufferApi.Blob( await FileInstance.arrayBuffer() ) + const FileBlob = FileInstance instanceof Blob ? FileInstance : new bufferApi.Blob( FileInstance.arrayBuffer ) - console.log( 'FileBlob', await FileInstance.arrayBuffer() ) + // console.log( 'FileBlob', FileBlob ) const fileReader = new zip.BlobReader( FileBlob )