Compare commits

..

No commits in common. "0c892e55b38dc4ca66abed118866c663b3984e5b" and "593aac4ebc1319d3a6911387ffef92197275ad13" have entirely different histories.

2 changed files with 3 additions and 3 deletions

View File

@ -1,5 +1,5 @@
////
// version: a4e5557
// version: f4b8a27
// src/js/dom.ts
var content2 = $("content");
@ -244,7 +244,7 @@ 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"))

View File

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