We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aa2ae8b commit 9c4b781Copy full SHA for 9c4b781
src/services/EmulatorService.ts
@@ -32,12 +32,12 @@ export class EmulatorService {
32
return
33
}
34
35
- const url = new URL('../workers/emulator.worker.ts', import.meta.url)
+ const url = new URL('../workers/emulator.worker.ts?worker', import.meta.url)
36
url.searchParams.set(
37
'vmRemoteUrl',
38
vmRemoteUrl ?? 'https://spacestation13.github.io/dm-playground-linux/',
39
)
40
- this.worker = new Worker(url, { type: 'classic' })
+ this.worker = new Worker(url)
41
this.worker.addEventListener('message', (event: MessageEvent<EmulatorInboundMessage>) => {
42
const payload = event.data
43
this.events.dispatchEvent(new CustomEvent(payload.type, { detail: payload }))
0 commit comments