Skip to content

Commit

Permalink
Ensure Bangle.load(".bootcde") just calls load() if no uiRemove -…
Browse files Browse the repository at this point in the history
… fix error loading clock without widgets

Fixes espruino/BangleApps#3353
  • Loading branch information
gfwilliams committed Apr 15, 2024
1 parent b251d83 commit 0fc1f3c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
Add String.replaceAll to allow all occurrances of a string to be replaced (previously .replace(/substr/g, "") had to be used)
Jolt.js: Jolt.Q0/1/2/3 now available as global vars (Q0/1/2/3)
Storage.readJSON will now read numeric field names like "{1:1}" which can be produced by writeJSON (fix #2484)
Ensure `Bangle.load(".bootcde")` just calls `load()` if no uiRemove - fix error loading clock without widgets

2v21 : nRF52: free up 800b more flash by removing vector table padding
Throw Exception when a Promise tries to resolve with another Promise (#2450)
Expand Down
2 changes: 1 addition & 1 deletion libs/js/banglejs/Bangle_load.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
__FILE__=name;
if (!name) name = ".bootcde";
setTimeout(eval,0,require("Storage").read(name)); // Load app without a reboot
} else load(name);
} else load((name!=".bootcde")?name:undefined);
})
2 changes: 1 addition & 1 deletion libs/js/banglejs/Bangle_load.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 0fc1f3c

Please sign in to comment.