From a8c3fcf80d8cb8f4749393cd5025ce227903bf37 Mon Sep 17 00:00:00 2001 From: Talal <55702645+aloopuri@users.noreply.github.com> Date: Tue, 13 Dec 2022 20:00:24 +0000 Subject: [PATCH] Fix beastify code (#505) * Fix blank page bug when clicking popup background --- beastify/popup/choose_beast.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/beastify/popup/choose_beast.js b/beastify/popup/choose_beast.js index 4c521e9..ca2f08a 100644 --- a/beastify/popup/choose_beast.js +++ b/beastify/popup/choose_beast.js @@ -65,6 +65,10 @@ function listenForClicks() { * Get the active tab, * then call "beastify()" or "reset()" as appropriate. */ + if (e.target.tagName !== "BUTTON" || !e.target.closest("#popup-content")) { + // Ignore when click is not on a button within