update build.js
This commit is contained in:
parent
a4e5557bf1
commit
0c892e55b3
|
|
@ -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"))
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user