Skip to content

Commit

Permalink
Merge pull request #445 from c0per/fix/worker-sdk-url
Browse files Browse the repository at this point in the history
fix: pass sdkUrl into init() in worker
  • Loading branch information
syrusakbary authored Nov 26, 2024
2 parents 358be55 + 7942a6b commit 905e9a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src-js/worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ globalThis.onmessage = async ev => {
if (ev.data.type == "init") {
const { memory, module, id, sdkUrl } = ev.data;
const { init, ThreadPoolWorker } = await import(sdkUrl);
await init({ module: module, memory: memory });
await init({ module: module, sdkUrl: sdkUrl, memory: memory });

worker = new ThreadPoolWorker(id);

Expand Down

0 comments on commit 905e9a8

Please sign in to comment.