Merge pull request #25 from DenverCoder1/new-wallpaper

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

View File

@ -215,8 +215,10 @@ if (isset($_GET['random'])) {
// 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) {
img.addEventListener("error", function() {
this.src = this.parentElement.href; this.src = this.parentElement.href;
}); });
});
</script> </script>
</body> </body>