lpdumas / gw2cartographers

A Guild Wars 2 map project
gw2cartographers.com
19 stars 8 forks source link

How to handle local storage on map load? #25

Closed lpdumas closed 12 years ago

jsilvestre commented 12 years ago

Here are my thoughts.

We could simply use local storage until the modification is submitted. Use case:

TL;DR: use local storage as soon as there is something in it, otherwise use config.js. The user can clear his local storage (to use config.js again).

lpdumas commented 12 years ago

That's basically what i've in mind, except the part where the local storage is cleared upon map submission. This is a nice adition ;) I'll try to implement everything tonight!