fix(site): lightbox reference error

This commit is contained in:
Jonah Lawrence 2022-01-18 17:55:33 -07:00
parent a3f9d0b743
commit 7300250bff
No known key found for this signature in database
GPG Key ID: 613851A667DC08A3
1 changed files with 6 additions and 6 deletions

View File

@ -204,13 +204,13 @@ if (isset($_GET['random'])) {
if (window.location.hash) {
openImageFromHash();
}
});
// if hash is changed and lightbox is closed, open image
window.addEventListener("hashchange", function() {
if (!lightbox.lightboxOpen) {
openImageFromHash();
}
// if hash is changed and lightbox is closed, open image
window.addEventListener("hashchange", function() {
if (!lightbox.lightboxOpen) {
openImageFromHash();
}
});
});
// if imgproxy version fails to load, fallback to full-size image