boot 0.66: Ensure __FILE__ is set even after a fresh boot (fix #3857)

master
Gordon Williams 2025-06-19 16:29:10 +01:00
parent df09a86355
commit b95ee7bb4a
3 changed files with 5 additions and 3 deletions

View File

@ -76,3 +76,4 @@
Bangle.loadWidgets overwritten with fast version on success
Refuse to work on firmware <2v16 and remove old polyfills
0.65: Only display interpreter errors if log is nonzero
0.66: Ensure __FILE__ is set even after a fresh boot (fix #3857)

View File

@ -23,6 +23,7 @@ if (!_clkApp) {
require("Storage").writeJSON("setting.json", s);
}
}
if (s.clock) __FILE__=s.clock;
delete s;
if (!_clkApp) _clkApp=`E.showMessage("No Clock Found");setWatch(()=>{Bangle.showLauncher();}, global.BTN2||BTN, {repeat:false,edge:"falling"});`;
eval(_clkApp);

View File

@ -1,7 +1,7 @@
{
"id": "boot",
"name": "Bootloader",
"version": "0.65",
"version": "0.66",
"description": "This is needed by Bangle.js to automatically load the clock, menu, widgets and settings",
"icon": "bootloader.png",
"type": "bootloader",