Compare commits
2 Commits
593aac4ebc
...
0c892e55b3
| Author | SHA1 | Date | |
|---|---|---|---|
| 0c892e55b3 | |||
| a4e5557bf1 |
|
|
@ -1,5 +1,5 @@
|
||||||
////
|
////
|
||||||
// version: f4b8a27
|
// version: a4e5557
|
||||||
|
|
||||||
// src/js/dom.ts
|
// src/js/dom.ts
|
||||||
var content2 = $("content");
|
var content2 = $("content");
|
||||||
|
|
@ -244,7 +244,7 @@ function handleBrowserKeydown(e) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
function handleClick(e) {
|
function handleClick(e) {
|
||||||
const target = e.target;
|
const target = e.target.closest("button, a");
|
||||||
if (!(target instanceof HTMLElement))
|
if (!(target instanceof HTMLElement))
|
||||||
return;
|
return;
|
||||||
if (target.id.endsWith("-button"))
|
if (target.id.endsWith("-button"))
|
||||||
|
|
|
||||||
|
|
@ -111,7 +111,7 @@ function handleBrowserKeydown(e: KeyboardEvent) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function handleClick(e: MouseEvent) {
|
function handleClick(e: MouseEvent) {
|
||||||
const target = e.target
|
const target = (e.target as HTMLElement).closest("button, a")
|
||||||
if (!(target instanceof HTMLElement)) return
|
if (!(target instanceof HTMLElement)) return
|
||||||
|
|
||||||
if (target.id.endsWith("-button"))
|
if (target.id.endsWith("-button"))
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user