Merge pull request #24 from DenverCoder1/new-wallpaper
This commit is contained in:
commit
18c726eebe
|
@ -204,7 +204,6 @@ if (isset($_GET['random'])) {
|
|||
if (window.location.hash) {
|
||||
openImageFromHash();
|
||||
}
|
||||
});
|
||||
|
||||
// if hash is changed and lightbox is closed, open image
|
||||
window.addEventListener("hashchange", function() {
|
||||
|
@ -212,6 +211,7 @@ if (isset($_GET['random'])) {
|
|||
openImageFromHash();
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
// if imgproxy version fails to load, fallback to full-size image
|
||||
document.querySelectorAll(".gallery img").forEach(function(img) {
|
||||
|
|
Loading…
Reference in New Issue