diff options
author | tdro <tdro@noreply.example.com> | 2023-12-01 19:28:38 -0500 |
---|---|---|
committer | tdro <tdro@noreply.example.com> | 2023-12-01 19:28:38 -0500 |
commit | 71f7ec33a8086724bc520f168c233b00d9f367f5 (patch) | |
tree | dbe372fb622d016fae7d475842060722e3067ddb /static/js | |
parent | 0cc8a72e45fe2891c9e11de8566fce91c16d62d3 (diff) | |
download | canory-71f7ec33a8086724bc520f168c233b00d9f367f5.tar.gz canory-71f7ec33a8086724bc520f168c233b00d9f367f5.tar.bz2 canory-71f7ec33a8086724bc520f168c233b00d9f367f5.zip |
static/js/hoverfix: Check function existence
Diffstat (limited to 'static/js')
-rw-r--r-- | static/js/hoverfix.ts | 1 |
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) { |