Skip to content

Commit

Permalink
chore: use Worker replace OnDemandWorker
Browse files Browse the repository at this point in the history
  • Loading branch information
septs committed Jan 28, 2021
1 parent 159f48d commit 7c12bf7
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,11 @@ import type { AsyncCallOptions } from 'async-call-rpc'
import { AsyncCall } from 'async-call-rpc/full'
import { WorkerChannel } from 'async-call-rpc/utils/web/worker'
import { serialization } from '../../../utils/type-transform/Serialization'
import { OnDemandWorker } from '../../../web-workers/OnDemandWorker'

export let StegoWorker: OnDemandWorker | undefined
export let StegoWorker: Worker | undefined

if (process.env.architecture) {
StegoWorker = new OnDemandWorker(new URL('./worker.ts', import.meta.url), { name: 'StegoWorker' })
StegoWorker = new Worker(new URL('./worker.ts', import.meta.url), { name: 'StegoWorker' })
}

const options: AsyncCallOptions = {
Expand Down

0 comments on commit 7c12bf7

Please sign in to comment.