PuzzleScript icon indicating copy to clipboard operation
PuzzleScript copied to clipboard

Further abstract storage API

Open jjrscott opened this issue 2 years ago • 0 comments

Some platforms, notably the iOS simulator, change document.URL on every run, resulting in lost data.

Moving document.URL into storagewrapper.js allows for:

  1. Cleaner calls in engine.js and globalVariables.js
  2. Simpler overriding as now only the key is included in the call.

This change should have no effect on existing installations since the underlying localStorage keys remain the same.

jjrscott avatar Aug 31 '23 12:08 jjrscott