Fix data not transferring into Worker

This commit is contained in:
Sam Carlton 2022-08-07 16:05:43 -05:00
parent f73635de08
commit 6b08545081
2 changed files with 16 additions and 7 deletions

View file

@ -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 )