aboutsummaryrefslogtreecommitdiff
path: root/static
diff options
context:
space:
mode:
authortdro <tdro@noreply.example.com>2023-12-01 19:28:38 -0500
committertdro <tdro@noreply.example.com>2023-12-01 19:28:38 -0500
commit71f7ec33a8086724bc520f168c233b00d9f367f5 (patch)
treedbe372fb622d016fae7d475842060722e3067ddb /static
parent0cc8a72e45fe2891c9e11de8566fce91c16d62d3 (diff)
downloadcanory-71f7ec33a8086724bc520f168c233b00d9f367f5.tar.gz
canory-71f7ec33a8086724bc520f168c233b00d9f367f5.tar.bz2
canory-71f7ec33a8086724bc520f168c233b00d9f367f5.zip
static/js/hoverfix: Check function existence
Diffstat (limited to 'static')
-rw-r--r--static/js/hoverfix.ts1
1 files changed, 1 insertions, 0 deletions
diff --git a/static/js/hoverfix.ts b/static/js/hoverfix.ts
index c08d089..6fba5fd 100644
--- a/static/js/hoverfix.ts
+++ b/static/js/hoverfix.ts
@@ -37,6 +37,7 @@
}
self.addEventListener("mousemove", function (event) {
+ if (typeof event.target.closest !== "function") return;
tree = event.target.closest("figure") || event.target.closest("article");
if (tree !== null) {