Try/Catch and Stacktrace for debugging
parent
10cd2a31e9
commit
42bb0e418e
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Reference in New Issue