]> git.codecow.com Git - nano25519.git/commitdiff
Fix worker URL and ID assignments.
authorChris Duncan <chris@zoso.dev>
Fri, 19 Jun 2026 06:09:29 +0000 (23:09 -0700)
committerChris Duncan <chris@zoso.dev>
Fri, 19 Jun 2026 06:09:29 +0000 (23:09 -0700)
src/lib/nano25519.ts

index e8f7f4b623de017dc8d659eb388b5a9a2912bcd3..373f136739b56c2e56d941e636344f5fe74ace55 100644 (file)
@@ -209,7 +209,7 @@ const nano25519_init = (bytes: number[]): { derive: typeof derive, sign: typeof
                                throw new TypeError('Invalid nano25519Worker request')
                        }
                        const data: Data = message.data as object & { url: string, id: string, action: string }
-                       const { url, id } = data
+                       { ({ url, id } = data) }
                        if (typeof url !== 'string' || typeof id !== 'string') return
                        if (url !== client) return