Compare commits

...

2 Commits

Author SHA1 Message Date
0c892e55b3 update build.js 2025-10-06 20:55:26 -07:00
a4e5557bf1 hmmmmmm 2025-10-06 20:55:25 -07:00
2 changed files with 3 additions and 3 deletions

View File

@ -1,5 +1,5 @@
////
// version: f4b8a27
// version: a4e5557
// src/js/dom.ts
var content2 = $("content");
@ -244,7 +244,7 @@ function handleBrowserKeydown(e) {
}
}
function handleClick(e) {
const target = e.target;
const target = e.target.closest("button, a");
if (!(target instanceof HTMLElement))
return;
if (target.id.endsWith("-button"))

View File

@ -111,7 +111,7 @@ function handleBrowserKeydown(e: KeyboardEvent) {
}
function handleClick(e: MouseEvent) {
const target = e.target
const target = (e.target as HTMLElement).closest("button, a")
if (!(target instanceof HTMLElement)) return
if (target.id.endsWith("-button"))