From 26780cce5a5a308a00f9e1d4d118340879e3acf2 Mon Sep 17 00:00:00 2001 From: Chris Duncan Date: Tue, 28 Apr 2026 16:33:57 -0700 Subject: [PATCH] Remove dialog from DOM when closed. --- src/lib/wallet/sign.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib/wallet/sign.ts b/src/lib/wallet/sign.ts index 5d8efb1..5bae8bf 100644 --- a/src/lib/wallet/sign.ts +++ b/src/lib/wallet/sign.ts @@ -107,6 +107,7 @@ async function confirm (id: string, address: string, message: Block | string[]): ` dialog.addEventListener('close', (ev) => { + dialog.remove() if (ev.isTrusted && navigator.userActivation?.isActive) { resolve(dialog.returnValue === 'yes' ? id : null) } else { -- 2.47.3