Skip to content

Commit 0b12ae4

Browse files
committed
Remove "const" from for loop declaration
Work around bug HtmlUnit/htmlunit#449 in htmlunit Issue #863
1 parent 15a3ce3 commit 0b12ae4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/web/playoff/scoregenbrackets.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88

99
function checkSomethingToPrint() {
1010
let somethingToPrint = false;
11-
for (const checkbox of document.querySelectorAll('input[type=checkbox]')) {
11+
// htmlunit doesn't handle const in a for loop, so skip it here - https://github.com/HtmlUnit/htmlunit/issues/449
12+
for (checkbox of document.querySelectorAll('input[type=checkbox]')) {
1213
if (checkbox.checked) {
1314
somethingToPrint = true;
1415
}

0 commit comments

Comments
 (0)