Merge pull request #24 from DenverCoder1/new-wallpaper
This commit is contained in:
commit
18c726eebe
12
index.php
12
index.php
|
@ -204,13 +204,13 @@ 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() {
|
||||||
if (!lightbox.lightboxOpen) {
|
if (!lightbox.lightboxOpen) {
|
||||||
openImageFromHash();
|
openImageFromHash();
|
||||||
}
|
}
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
// if imgproxy version fails to load, fallback to full-size image
|
// if imgproxy version fails to load, fallback to full-size image
|
||||||
|
|
Loading…
Reference in New Issue