From 53075b75939269e1331216e55204b543ff19ee81 Mon Sep 17 00:00:00 2001 From: Eric Claeys <83164203+EricClaeys@users.noreply.github.com> Date: Sat, 21 Dec 2024 14:34:36 -0600 Subject: [PATCH 1/3] Update public.php: remove spurious ); --- html/public.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/html/public.php b/html/public.php index 79ddd0132..0e54cc9ce 100644 --- a/html/public.php +++ b/html/public.php @@ -41,7 +41,7 @@ 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(); }, ); From 5b262db9d2b307899a469addb02638a555ed135a Mon Sep 17 00:00:00 2001 From: Eric Claeys <83164203+EricClaeys@users.noreply.github.com> Date: Sat, 21 Dec 2024 14:39:39 -0600 Subject: [PATCH 2/3] Update public.php: Add ; --- html/public.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/html/public.php b/html/public.php index 0e54cc9ce..8a6673258 100644 --- a/html/public.php +++ b/html/public.php @@ -46,7 +46,7 @@ function getImage() { // Use tail recursion to trigger the next invocation after `$delay` milliseconds setTimeout(function () { getImage(); }, ); }); - } + }; getImage(); From 26f6f0bce426d3045b817015bf697763c47cf48b Mon Sep 17 00:00:00 2001 From: Alex Greenland Date: Sat, 21 Dec 2024 21:41:01 +0000 Subject: [PATCH 3/3] Fix timed reload --- html/public.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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();