From b945f57af727c47432fbb2c948dabcbc39c9508e Mon Sep 17 00:00:00 2001 From: benStre Date: Sat, 10 Feb 2024 01:47:15 +0100 Subject: [PATCH] set worker not as default interface --- threads/thread-worker.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/threads/thread-worker.ts b/threads/thread-worker.ts index 91e38e3a..ce8e488f 100644 --- a/threads/thread-worker.ts +++ b/threads/thread-worker.ts @@ -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