diff --git a/html/public.php b/html/public.php index 8a6673258..5866713f9 100644 --- a/html/public.php +++ b/html/public.php @@ -41,11 +41,11 @@ 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(); }, ); - }); + }).finally(() => { + // Use tail recursion to trigger the next invocation after `$delay` milliseconds + setTimeout(function () { getImage(); }, ); + } + ); }; getImage();