Try/Catch and Stacktrace for debugging

master
Stefan Kuehnel 2020-05-24 18:45:38 +02:00
parent 10cd2a31e9
commit 42bb0e418e
2 changed files with 7 additions and 2 deletions

View File

@ -887,7 +887,7 @@
{ "id": "berlinc",
"name": "Berlin Clock",
"icon": "berlin-clock.png",
"version":"0.03",
"version":"0.03.10",
"description": "Berlin Clock (see https://en.wikipedia.org/wiki/Mengenlehreuhr)",
"tags": "clock",
"type":"clock",

View File

@ -13,6 +13,7 @@ rowlights = [];
time_digit = [];
function drawBerlinClock() {
try {
g.clear();
var now = new Date();
@ -65,11 +66,15 @@ function drawBerlinClock() {
}
if (row == 3 && show_time) {
g.setColor(1,1,1);
g.setFontAlign(0,0);
g.setFontAlign(0,0);
g.drawString(time_digit[col],(x1+x2)/2,(y1+y2)/2);
}
}
}
} catch (e) {
console.log(e)
console.trace()
}
}
function toggleDate() {