mirror of
https://github.com/ThatGuySam/doesitarm.git
synced 2026-05-18 06:44:46 -07:00
Fix data not transferring into Worker
This commit is contained in:
parent
f73635de08
commit
6b08545081
2 changed files with 16 additions and 7 deletions
|
|
@ -13,9 +13,11 @@ self.onmessage = async ( event ) => {
|
|||
if ( status === 'start' ) {
|
||||
// Get Scan Options
|
||||
const { options } = event.data
|
||||
|
||||
// console.log( 'options', options )
|
||||
|
||||
const scan = new AppScan({
|
||||
...options,
|
||||
fileLoader: () => options.file,
|
||||
// Use self.postMessage as the message callback
|
||||
messageReceiver: ( message ) => {
|
||||
self.postMessage( message )
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue