src/glkote/dialog.js
/* Load a snapshot (a JSONable object) from a signature-dependent location.
*/
Load a snapshot (a JSONable object) from a signature-dependent location.
Load a snapshot ( a JSONable object ) from a signature - dependent location .
function autosave_read(signature) {
    var key = 'autosave:' + signature;
    var val = localStorage.getItem(key);
    if (val) {
        try {
            return JSON.parse(val);
        }
        catch (ex) { }
    }
    return null;
}
function autosave_read ( signature ) { var key = 'autosave:' + signature ; var val = localStorage . getItem ( key ) ; if ( val ) { try { return JSON . parse ( val ) ; } catch ( ex ) { } } return null ; }
Load a snapshot (a JSONable object) from a signature-dependent location.
Load a snapshot ( a JSONable object ) from a signature - dependent location .