1
0
Fork 0

I was right the first time with drawTimeout

master
deirdreobyrne 2022-06-07 22:34:21 +01:00
parent a3c82d5bab
commit 6e1aeed55b
3 changed files with 3 additions and 1 deletions

View File

@ -1,3 +1,4 @@
0.01: Initial version
0.02: setTimeout bug fix; no leading zero on date; lightmode; 12 hour format; cleanup
0.03: Internationalisation; bug fix - battery icon responds promptly to charging state
0.04: bug fix

View File

@ -16,6 +16,7 @@ var drawTimeout;
function queueDraw() {
if (drawTimeout) clearTimeout(drawTimeout);
drawTimeout = setTimeout(function () {
drawTimeout = undefined;
draw();
}, 60300 - (Date.now() % 60000)); // We aim for 300ms into the next minute to ensure we make it!
}

View File

@ -1,7 +1,7 @@
{ "id": "bigdclock",
"name": "Big digit clock containing just the essentials",
"shortName":"Big digit clk",
"version":"0.03",
"version":"0.04",
"description": "A clock containing just the essentials, made as easy to read as possible for those of us that need glasses. It contains the time, the day-of-week, the day-of-month, and the current battery state-of-charge.",
"icon": "bigdclock.png",
"type": "clock",