Skip to content

Commit

Permalink
set worker not as default interface
Browse files Browse the repository at this point in the history
  • Loading branch information
benStre committed Feb 10, 2024
1 parent 553fc5b commit b945f57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion threads/thread-worker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ addEventListener("message", async function (event) {
const endpoint = Datex.Target.get(data.endpoint as any) as DatexType.Endpoint;

// TODO: Worker type?
await communicationHub.addInterface(new WorkerInterface(self as unknown as Worker, endpoint), true);
await communicationHub.addInterface(new WorkerInterface(self as unknown as Worker, endpoint));

messageTarget.postMessage({type: "INITIALIZED", remoteModule, endpoint: Datex.Runtime.endpoint.toString()});
// trust parent endpoint
Expand Down

0 comments on commit b945f57

Please sign in to comment.