Dirty hack to store the app state and restore it at app startup.

This commit is contained in:
vdv committed 2022-12-13 22:26:17 +01:00
1 parent acc1d7cc1e
commit 040122189c
4 files changed
+52 -4

No files matched your search

+3
View File
@@ -11,6 +11,7 @@ import {
getAllGpxes,
getAllGpxesWithSummary,
} from '../db/gpx';
import { getState, setState } from '../db/state';
import { getTrk, putNewTrk } from '../db/trk';
import { getTrkseg, appendTrkpt } from '../db/trkseg';
import { getWpt, putWpt } from '../db/wpt';
@@ -37,6 +38,8 @@ onmessage = async function (e) {
getWpt,
putWpt,
getState,
setState,
getAndWatch,
cancelWatch,