From bd522026209281d17ac09d68d5f3debbe1cd625a Mon Sep 17 00:00:00 2001 From: Chris Duncan Date: Thu, 13 Aug 2026 22:01:14 -0700 Subject: [PATCH] Clean up existing worker blob if it already exists before creating anew. --- src/lib/worker.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib/worker.ts b/src/lib/worker.ts index dea84e4..644f7d3 100644 --- a/src/lib/worker.ts +++ b/src/lib/worker.ts @@ -127,6 +127,7 @@ function isBytes (a: unknown): a is Uint8Array { function init (): void { try { BROWSER: { + if (url) URL.revokeObjectURL(url) url = URL.createObjectURL(new Blob([nano25519_worker], { type: 'text/javascript' })) worker = new Worker(url, { type: 'module' }) } -- 2.52.0