Merge pull request #24 from DenverCoder1/new-wallpaper

This commit is contained in:
Jonah Lawrence 2022-01-18 17:55:48 -07:00 committed by GitHub
commit 18c726eebe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 6 deletions

View File

@ -204,7 +204,6 @@ if (isset($_GET['random'])) {
if (window.location.hash) { if (window.location.hash) {
openImageFromHash(); openImageFromHash();
} }
});
// if hash is changed and lightbox is closed, open image // if hash is changed and lightbox is closed, open image
window.addEventListener("hashchange", function() { window.addEventListener("hashchange", function() {
@ -212,6 +211,7 @@ if (isset($_GET['random'])) {
openImageFromHash(); openImageFromHash();
} }
}); });
});
// if imgproxy version fails to load, fallback to full-size image // if imgproxy version fails to load, fallback to full-size image
document.querySelectorAll(".gallery img").forEach(function(img) { document.querySelectorAll(".gallery img").forEach(function(img) {