From 21ccecab4639544ed4baea76da974f0f4b889f85 Mon Sep 17 00:00:00 2001 From: sneak Date: Thu, 26 Feb 2026 03:51:51 +0700 Subject: [PATCH] Fix approval popup: init listeners before early return, rename view, space buttons The Allow/Deny buttons did nothing because approval.init(ctx) was called after the early return for approval mode, so listeners were never attached. Move it before the check. Rename view from "approve" to "approve-site" to avoid ambiguity with future transaction approval. Space Allow and Deny buttons apart with justify-between to prevent misclicks. --- src/popup/index.html | 6 +++--- src/popup/index.js | 6 ++++-- src/popup/views/helpers.js | 2 +- 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/src/popup/index.html b/src/popup/index.html index 53bba29..9fe97b2 100644 --- a/src/popup/index.html +++ b/src/popup/index.html @@ -593,8 +593,8 @@ - -