Fix lint warnings.

Loop variables had warnings for being undefinied.  Added the "let" keyword
where they are initialized.
pull/3722/head
Randy Heydon 2025-01-29 19:30:43 -05:00
parent e007d05e97
commit 00cd02bcb8
1 changed files with 2 additions and 2 deletions

View File

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