Skip to content

Commit b95ee7b

Browse files
committed
boot 0.66: Ensure __FILE__ is set even after a fresh boot (fix #3857)
1 parent df09a86 commit b95ee7b

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

apps/boot/ChangeLog

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,4 +75,5 @@
7575
0.64: Automatically create .widcache and .clkinfocache to speed up loads
7676
Bangle.loadWidgets overwritten with fast version on success
7777
Refuse to work on firmware <2v16 and remove old polyfills
78-
0.65: Only display interpreter errors if log is nonzero
78+
0.65: Only display interpreter errors if log is nonzero
79+
0.66: Ensure __FILE__ is set even after a fresh boot (fix #3857)

apps/boot/bootloader.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ if (!_clkApp) {
2323
require("Storage").writeJSON("setting.json", s);
2424
}
2525
}
26+
if (s.clock) __FILE__=s.clock;
2627
delete s;
2728
if (!_clkApp) _clkApp=`E.showMessage("No Clock Found");setWatch(()=>{Bangle.showLauncher();}, global.BTN2||BTN, {repeat:false,edge:"falling"});`;
2829
eval(_clkApp);
29-
delete _clkApp;
30+
delete _clkApp;

apps/boot/metadata.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"id": "boot",
33
"name": "Bootloader",
4-
"version": "0.65",
4+
"version": "0.66",
55
"description": "This is needed by Bangle.js to automatically load the clock, menu, widgets and settings",
66
"icon": "bootloader.png",
77
"type": "bootloader",

0 commit comments

Comments
 (0)