From: Chris Duncan Date: Sun, 1 Dec 2024 05:30:45 +0000 (-0800) Subject: Fix wrong variable being returned from worker. X-Git-Url: https://zoso.dev/?a=commitdiff_plain;h=c47719b1b5aaa66ad1be8cb312122b4d70287da9;p=libnemo.git Fix wrong variable being returned from worker. --- diff --git a/src/lib/workers/ckdBip44.ts b/src/lib/workers/ckdBip44.ts index bb7f380..99a8ed8 100644 --- a/src/lib/workers/ckdBip44.ts +++ b/src/lib/workers/ckdBip44.ts @@ -18,7 +18,7 @@ const Bip44Ckd = () => { addEventListener('message', (message) => { const data = JSON.parse(new TextDecoder().decode(message.data ?? message)) process(data).then(results => { - const buf = new TextEncoder().encode(JSON.stringify(data)).buffer + const buf = new TextEncoder().encode(JSON.stringify(results)).buffer //@ts-expect-error postMessage(buf, [buf]) })