Skip to content

Commit 9c4b781

Browse files
committed
erm no
1 parent aa2ae8b commit 9c4b781

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/services/EmulatorService.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,12 @@ export class EmulatorService {
3232
return
3333
}
3434

35-
const url = new URL('../workers/emulator.worker.ts', import.meta.url)
35+
const url = new URL('../workers/emulator.worker.ts?worker', import.meta.url)
3636
url.searchParams.set(
3737
'vmRemoteUrl',
3838
vmRemoteUrl ?? 'https://spacestation13.github.io/dm-playground-linux/',
3939
)
40-
this.worker = new Worker(url, { type: 'classic' })
40+
this.worker = new Worker(url)
4141
this.worker.addEventListener('message', (event: MessageEvent<EmulatorInboundMessage>) => {
4242
const payload = event.data
4343
this.events.dispatchEvent(new CustomEvent(payload.type, { detail: payload }))

0 commit comments

Comments
 (0)