Skip to content

Commit ce4b7df

Browse files
committed
pace: restore splits from previous run
1 parent 54c8572 commit ce4b7df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/pace/app.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ type Split = {
2525
time: Time,
2626
};
2727

28-
const splits: Split[] = []; // times
28+
const splits: Split[] = (S.readJSON("pace.json", 1) as Split[]) || []; // times
2929
let splitOffset = 0, splitOffsetPx = 0;
3030

3131
const GPS_TIMEOUT_MS = 30000;

0 commit comments

Comments
 (0)