Hi
How can I reset webstorage upon INSTALL
So new version will start from clean
Regards
Flemming
There is a "clear local storage" for the webstorage object, might be what you mean?
Store the current version number in local storage, check against a constant holding the current version number at game launch. If they're different, clear local storage and store the new version number. This ensures clearing the local storage after booting the new version for the first time. A quick example. Change the CURRENTVERSION to test.
Develop games in your browser. Powerful, performant & highly capable.
linkman2004
Great sample - THANKS !!
Hi ... sorry but where to change = CURRENTVERSION