Skip to content

Commit

Permalink
Remove "const" from for loop declaration
Browse files Browse the repository at this point in the history
Work around bug HtmlUnit/htmlunit#449 in
htmlunit

Issue #863
  • Loading branch information
jpschewe committed Feb 22, 2022
1 parent 15a3ce3 commit 0b12ae4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/web/playoff/scoregenbrackets.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 0b12ae4

Please # to comment.