Revert "Update boot.js"

The old code was fine, and this broke it

This reverts commit 2351340a73.
master
Gordon Williams 2022-05-23 10:34:18 +01:00
parent 8663e1e7cc
commit d3a0128bc8
1 changed files with 1 additions and 1 deletions

View File

@ -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(require("Storage").read(active[0].js)!==undefined ? active[0].js : 'load("sched.js")',t);
Bangle.SCHED = setTimeout(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));
}