From 2351340a73a354e377c504edec3c960d176137ae Mon Sep 17 00:00:00 2001 From: frigis1 <63980066+frigis1@users.noreply.github.com> Date: Tue, 17 May 2022 23:39:51 -0700 Subject: [PATCH] Update boot.js --- apps/sched/boot.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/sched/boot.js b/apps/sched/boot.js index dbdf02593..06dc4f308 100644 --- a/apps/sched/boot.js +++ b/apps/sched/boot.js @@ -24,7 +24,7 @@ will then clearInterval() to get rid of this call so it can proceed normally. If active[0].js is defined, just run that code as-is and not alarm.js */ - Bangle.SCHED = setTimeout(active[0].js||'load("sched.js")',t); + Bangle.SCHED = setTimeout(require("Storage").read(active[0].js)!==undefined ? active[0].js : 'load("sched.js")',t); } else { // check for new alarms at midnight (so day of week works) Bangle.SCHED = setTimeout('eval(require("Storage").read("sched.boot.js"))', 86400000 - (Date.now()%86400000)); }