Skip to content

Commit

Permalink
Merge pull request #4099 from AllskyTeam/Fix-public.php-reload
Browse files Browse the repository at this point in the history
Fix public.php reload
  • Loading branch information
EricClaeys authored Dec 21, 2024
2 parents 027c5fc + 26f6f0b commit 9b96e27
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions html/public.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,12 @@ function getImage() {
if (!this.complete || typeof this.naturalWidth == "undefined" || this.naturalWidth == 0) {
console.log('broken image: ', err);
}
});
}).finally(() => {
// Use tail recursion to trigger the next invocation after `$delay` milliseconds
setTimeout(function () { getImage(); }, <?php echo $delay ?>);
});
}
}).finally(() => {
// Use tail recursion to trigger the next invocation after `$delay` milliseconds
setTimeout(function () { getImage(); }, <?php echo $delay ?>);
}
);
};

getImage();
</script>
Expand Down

0 comments on commit 9b96e27

Please sign in to comment.