Skip to content

Commit

Permalink
chore(api): update protocol
Browse files Browse the repository at this point in the history
  • Loading branch information
heapwolf committed Aug 21, 2024
1 parent 4642235 commit 829fa04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/latica/proxy.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ class PeerWorkerProxy {
constructor (options, port, fn) {
if (!options.isWorkerThread) {
this.#channel = new MessageChannel()
this.#worker = new window.Worker(new URL('./worker.js', import.meta.url))
this.#worker = new globalThis.Worker(new URL('./worker.js', import.meta.url))

this.#worker.addEventListener('error', err => {
throw err
Expand Down

0 comments on commit 829fa04

Please sign in to comment.