Skip to content

Commit

Permalink
resolve change request
Browse files Browse the repository at this point in the history
  • Loading branch information
noname0310 authored and RReverser committed Oct 3, 2024
1 parent c8c3607 commit 5088c4d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/workerHelpers.worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
// and temporary bugs so that you don't need to deal with them in your code.
import initWbg, { wbg_rayon_start_worker } from '../../../';

onmessage = async ({ data: { module, memory, receiver } }) => {
await initWbg({ module, memory });
onmessage = async ({ data: { receiver, ...initData } }) => {
await initWbg(initData);
postMessage(true);
wbg_rayon_start_worker(receiver);
};

0 comments on commit 5088c4d

Please sign in to comment.