Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
inker committed Jan 25, 2024
1 parent 6109afd commit 6c72ec7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/worker/sendAndReceive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export default <Request, Response>(worker: Worker) => {

return (message: Request) =>
new Promise<Response>(resolve => {
const id = global.crypto.randomUUID()
const id = globalThis.crypto.randomUUID()
callbacks.set(id, resolve)
worker.postMessage({
correlationId: id,
Expand Down

0 comments on commit 6c72ec7

Please sign in to comment.