Fix warning from CI

master
Jordi Mas 2024-03-23 22:14:42 +01:00
parent 105ee98abf
commit 9500e3eaa0
1 changed files with 1 additions and 1 deletions

View File

@ -97,7 +97,7 @@ function draw() {
var time = require("locale").time(d, 1); var time = require("locale").time(d, 1);
g.setFont(font, primaryTimeFontSize); g.setFont(font, primaryTimeFontSize);
fontHeight = g.getFontHeight(); const fontHeight = g.getFontHeight();
g.clearRect(0, yposTime - fontHeight / 2, g.getWidth(), yposTime + fontHeight / 2); g.clearRect(0, yposTime - fontHeight / 2, g.getWidth(), yposTime + fontHeight / 2);
g.drawString(`${time}`, xyCenter, yposTime, true); g.drawString(`${time}`, xyCenter, yposTime, true);
var month = require("locale").month(d, 1); var month = require("locale").month(d, 1);