summaryrefslogtreecommitdiff
path: root/src/index.js
diff options
context:
space:
mode:
authorTim Keller <tjk@tjkeller.xyz>2025-06-11 21:09:11 -0500
committerTim Keller <tjk@tjkeller.xyz>2025-06-11 21:09:11 -0500
commit5ef1d2acb24e7b9ec8566ba29ae4dd025c78d7cb (patch)
tree979755235344bf1c7435b45e021a3369fea7dc75 /src/index.js
parent9e8bc4a1e2361c4a4e4a0657df9cd893acc68682 (diff)
downloadimmich-frame-5ef1d2acb24e7b9ec8566ba29ae4dd025c78d7cb.tar.xz
immich-frame-5ef1d2acb24e7b9ec8566ba29ae4dd025c78d7cb.zip
stupid huge update lots of cool stuff
Diffstat (limited to 'src/index.js')
-rw-r--r--src/index.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/index.js b/src/index.js
index a6d2130..d27c8db 100644
--- a/src/index.js
+++ b/src/index.js
@@ -20,7 +20,7 @@ function softRedirect(e) {
e.preventDefault()
let a = e.target
if (a === null) return
- while (a.tagName !== "A" && a !== null)
+ while (a !== null && a.tagName !== "A")
a = a.parentElement
if (a === null) return
Page.softRedirect(a.href)