drained: load boot exceptions (e.g. dst)

pull/2728/head
Rob Pilling 2023-05-07 10:41:51 +01:00
parent 4d676a9e46
commit c9f4fd7cc7
1 changed files with 12 additions and 0 deletions

View File

@ -125,3 +125,15 @@ if (Bangle.isCharging())
Bangle.on("charging", charging => {
if(charging) checkCharge();
});
if(!keepStartup){
const storage = require("Storage");
for(const boot of exceptions){
try{
const js = storage.read(`${boot}.boot.js`);
if(js) eval(js);
}catch(e){
console.log(`error loading boot exception "${boot}": ${e}`);
}
}
}