Fix lint warnings.

Loop variables had warnings for being undefinied.  Added the "let" keyword
where they are initialized.
master
Randy Heydon 2025-01-29 19:30:43 -05:00 committed by Gordon Williams
parent dbbc9886c9
commit 77cebe3178
1 changed files with 2 additions and 2 deletions

View File

@ -227,8 +227,8 @@ const drawCalendar = function(date) {
}, []);
let i = 0;
g.setFont("8x12", fontSize);
for (y = 0; y < rowN - 1; y++) {
for (x = 0; x < colN; x++) {
for (let y = 0; y < rowN - 1; y++) {
for (let x = 0; x < colN; x++) {
i++;
const day = days[i];
const curMonth = day < 15 ? month+1 : day < 50 ? month-1 : month;