From 0b12ae4e8c3da6219edee6a13433a0d0e56ccdc6 Mon Sep 17 00:00:00 2001 From: Jon Schewe Date: Mon, 21 Feb 2022 20:38:27 -0600 Subject: [PATCH] Remove "const" from for loop declaration Work around bug https://github.com/HtmlUnit/htmlunit/issues/449 in htmlunit Issue #863 --- src/main/web/playoff/scoregenbrackets.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/web/playoff/scoregenbrackets.js b/src/main/web/playoff/scoregenbrackets.js index 88eec84e5..284714a3a 100644 --- a/src/main/web/playoff/scoregenbrackets.js +++ b/src/main/web/playoff/scoregenbrackets.js @@ -8,7 +8,8 @@ function checkSomethingToPrint() { let somethingToPrint = false; - for (const checkbox of document.querySelectorAll('input[type=checkbox]')) { + // htmlunit doesn't handle const in a for loop, so skip it here - https://github.com/HtmlUnit/htmlunit/issues/449 + for (checkbox of document.querySelectorAll('input[type=checkbox]')) { if (checkbox.checked) { somethingToPrint = true; }