Skip to content

Commit 08b8473

Browse files
author
thyttan
committed
apphist: fix compat with fasload utils
... by reversing order of execution. Now `apphist` (order 4) is placed before `fasload` (order 5) in boot sequence. When it was the other way around (`apphist` order 6) the Bangle.js 2 would crap out, freeze up and then hard reboot.
1 parent 538b92f commit 08b8473

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)