1
0
Fork 0

Update boot.js

master
frigis1 2022-05-17 23:39:51 -07:00 committed by GitHub
parent 0684e378da
commit 2351340a73
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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 will then clearInterval() to get rid of this call so it can proceed
normally. normally.
If active[0].js is defined, just run that code as-is and not alarm.js */ 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) } 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)); Bangle.SCHED = setTimeout('eval(require("Storage").read("sched.boot.js"))', 86400000 - (Date.now()%86400000));
} }