aboutsummaryrefslogtreecommitdiff
path: root/static
diff options
context:
space:
mode:
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) {