mirror of
https://github.com/ThatGuySam/doesitarm.git
synced 2026-05-15 06:35:20 -07:00
Reenable V2 Scanner
This commit is contained in:
parent
e008ad7ddf
commit
b857977fbe
1 changed files with 18 additions and 18 deletions
|
|
@ -5,7 +5,7 @@ import * as zip from '@zip.js/zip.js'
|
|||
|
||||
import { isString } from './check-types.js'
|
||||
import parseMacho from './macho/index.js'
|
||||
// import { AppScan } from '~/helpers/scanner/client.mjs'
|
||||
import { AppScan } from '~/helpers/scanner/client.mjs'
|
||||
|
||||
const scannerVersion = (() => {
|
||||
// If there's no window
|
||||
|
|
@ -615,28 +615,28 @@ export default class AppFilesScanner {
|
|||
|
||||
console.log( 'scannerVersion', scannerVersion )
|
||||
|
||||
// if ( scannerVersion === '2' ) {
|
||||
// // const { AppScan } = await import('~/helpers/scanner/client.mjs')
|
||||
if ( scannerVersion === '2' ) {
|
||||
// const { AppScan } = await import('~/helpers/scanner/client.mjs')
|
||||
|
||||
// // Create a new AppScan instance
|
||||
// const scan = new AppScan({
|
||||
// fileLoader: async () => file.instance,
|
||||
// messageReceiver: ( details ) => {
|
||||
// console.log( 'Scan message:', details )
|
||||
// Create a new AppScan instance
|
||||
const scan = new AppScan({
|
||||
fileLoader: async () => file.instance,
|
||||
messageReceiver: ( details ) => {
|
||||
console.log( 'Scan message:', details )
|
||||
|
||||
// file.statusMessage = details.message
|
||||
// file.status = details.status
|
||||
// }
|
||||
// })
|
||||
file.statusMessage = details.message
|
||||
file.status = details.status
|
||||
}
|
||||
})
|
||||
|
||||
// // Scan the archive
|
||||
// await scan.start()
|
||||
// Scan the archive
|
||||
await scan.start()
|
||||
|
||||
// clearTimeout(timer)
|
||||
clearTimeout(timer)
|
||||
|
||||
// resolve()
|
||||
// return
|
||||
// }
|
||||
resolve()
|
||||
return
|
||||
}
|
||||
|
||||
this.scanFile( file, scanIndex ).then(
|
||||
response => resolve(response),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue