mirror of
https://github.com/ThatGuySam/doesitarm.git
synced 2026-05-18 06:44:46 -07:00
Revert FileInstance.arrayBuffer to node style
This commit is contained in:
parent
40dbe6cc42
commit
ed3f0a6f03
1 changed files with 2 additions and 2 deletions
|
|
@ -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 )
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue