Skip to content

Commit b93c157

Browse files
author
thyttan
committed
Merge branch 'app-history-from-fastload-utils' into app-loader
2 parents b08a325 + 08b8473 commit b93c157

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

apps/apphist/boot.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
// Things that use `eval` instead of `load` or `Bangle.load` (e.g. auto displaying new messages - `messagegui.new.js`) can affect the app history record unexpectedly. They don't themselves get added to the history (since we don't override `eval`) and if they use one of the other two mentioned load functions they may remove the last recorded entry.
3+
// Seems like `apphist` must be placed before `Fastload Utils` in execution order at boot for compatibility. Otherwise the Bangle.js 2 craps out, freezed up and soon reboots extra hard before loading the clock face again. This is ensured by metadata placing apphist at order 4 and Fastload Utils at order 5 in the boot sequence.
34

45
const s = require("Storage");
56
const SETTINGS = s.readJSON("apphist.json") || {};

apps/apphist/metadata.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"supports": ["BANGLEJS2"],
99
"readme": "README.md",
1010
"storage": [
11-
{"name":"apphist.6.boot.js","url":"boot.js"},
11+
{"name":"apphist.4.boot.js","url":"boot.js"},
1212
{"name":"apphist.settings.js","url":"settings.js"}
1313
],
1414
"data": [{"name":"apphist.json"}]

0 commit comments

Comments
 (0)