Skip to content

Commit ada24db

Browse files
author
thyttan
committed
Merge branch 'app-history-from-fastload-utils' into app-loader
2 parents 2c3ca42 + 2245958 commit ada24db

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

apps/apphist/boot.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
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.
33

44
const s = require("Storage");
5-
const SETTINGS = s.readJSON("fastload.json") || {};
5+
const SETTINGS = s.readJSON("apphist.json") || {};
66

77
global._load = global.load;
88
Bangle._load = Bangle.load;
99

10-
let appHistory = s.readJSON("fastload.history.json",true)||[];
11-
const resetHistory = ()=>{appHistory=[];s.writeJSON("fastload.history.json",appHistory);};
12-
const recordHistory = ()=>{s.writeJSON("fastload.history.json",appHistory);};
10+
let appHistory = s.readJSON("apphist.history.json",true)||[];
11+
const resetHistory = ()=>{appHistory=[];s.writeJSON("apphist.history.json",appHistory);};
12+
const recordHistory = ()=>{s.writeJSON("apphist.history.json",appHistory);};
1313

1414
const traverseHistory = (name)=>{
1515
if (name && name!=".bootcde" && !(name=="quicklaunch.app.js" && SETTINGS.disregardQuicklaunch)) {

apps/apphist/settings.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
(function(back) {
2-
var FILE="appHist.json";
2+
var FILE="apphist.settings.json";
33
var settings;
44
var isQuicklaunchPresent = !!require('Storage').read("quicklaunch.app.js", 0, 1);
55

0 commit comments

Comments
 (0)