This commit is contained in:
Tony
2026-07-04 20:28:00 +08:00
parent b329a29094
commit 9eb4b7dec9
5 changed files with 11 additions and 39 deletions
+1 -2
View File
@@ -22,8 +22,7 @@ window.addEventListener('click', function (evt) {
const a = evt
.composedPath()
.find((el) => el instanceof Node && el.nodeName.toUpperCase() === 'A') as
| HTMLAnchorElement
| undefined
HTMLAnchorElement | undefined
// return early if
if (