HistoryMap icon indicating copy to clipboard operation
HistoryMap copied to clipboard

Save session to / load session from local storage

Open Yuu-Han opened this issue 1 year ago • 3 comments

Yuu-Han avatar Apr 08 '24 17:04 Yuu-Han

An alternative to local storage (10mb limit) is IndexedDB. It does not have a specific limit on the size of storage, only depending on the browser and disk (maximum item size in IndexedDB).

Yuu-Han avatar Apr 10 '24 16:04 Yuu-Han

Yes. I haven't tried this myself, but I heard it is not that easy to use. I think Jeff might have mentioned this as well.

kaidatavis avatar Apr 15 '24 11:04 kaidatavis

This commit (cd403aaa83aaea526bea30c67a11abc5eb18cd49) automatically saves the hmPages to local storage when the array is updated and loads the saved array when historymap is opened (not sure if the timing of saving and loading needs to be changed).

Yuu-Han avatar May 15 '24 06:05 Yuu-Han