From b902ce1c514e064bd5e2e016e1828da8b07077a9 Mon Sep 17 00:00:00 2001 From: Hank Date: Wed, 16 Nov 2022 08:23:11 +0100 Subject: [PATCH] fixes --- apps/hworldclock/app.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/hworldclock/app.js b/apps/hworldclock/app.js index 57e9fb3f6..c80b712da 100644 --- a/apps/hworldclock/app.js +++ b/apps/hworldclock/app.js @@ -319,7 +319,7 @@ draw(); if (!Bangle.isLocked()) { // Initial state if (showSunInfo) { - if (PosInterval != 0 && typeof PosInterval != undefined) clearInterval(PosInterval); + if (PosInterval != 0 && typeof PosInterval != 'undefined') clearInterval(PosInterval); PosInterval = setInterval(updatePos, 60*10E3); // refesh every 10 mins updatePos(); } @@ -345,7 +345,7 @@ if (!Bangle.isLocked()) { // Initial state drawTimeout = undefined; if (showSunInfo) { - if (PosInterval != 0 && typeof PosInterval != undefined) clearInterval(PosInterval); + if (PosInterval != 0 && typeof PosInterval != 'undefined') clearInterval(PosInterval); PosInterval = setInterval(updatePos, 60*60E3); // refesh every 60 mins updatePos(); }