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