From 8435a63a99a587cbdceb6dd6e44d985ada600f26 Mon Sep 17 00:00:00 2001 From: Chris Wanstrath Date: Mon, 6 Oct 2025 20:57:53 -0700 Subject: [PATCH] update build.js --- public/bundle.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/public/bundle.js b/public/bundle.js index 4fde866..78960b1 100644 --- a/public/bundle.js +++ b/public/bundle.js @@ -1,5 +1,5 @@ //// -// version: a4e5557 +// version: 71de13c // src/js/dom.ts var content2 = $("content"); @@ -244,11 +244,9 @@ function handleBrowserKeydown(e) { } } function handleClick(e) { - const target = e.target.closest("button, a"); + const target = e.target; if (!(target instanceof HTMLElement)) return; - if (target.id.endsWith("-button")) - e.preventDefault(); switch (target.id) { case "back-button": navigateBack(); @@ -266,11 +264,13 @@ function handleClick(e) { fullscreenBrowser(); break; case "close-button": + e.stopImmediatePropagation(); closeBrowser(); break; default: return; } + e.preventDefault(); } function handlePageLoad() {} function setAddress(url) {