public/js/spike.js
function restore() {
    var data = store.get() || {};
    addEvent('load', function () {
      //console.log('scrolling to', data.y);
      window.scrollTo(data.x, data.y);
    });
  }
function restore() {
    var data = store.get() || {};
    addEvent('load', function () {
      //console.log('scrolling to', data.y);
      window.scrollTo(data.x, data.y);
    });
  }
function restore ( ) { var data = store . get ( ) || { } ; addEvent ( 'load' , function ( ) { //console.log('scrolling to', data.y); window . scrollTo ( data . x , data . y ) ; } ) ; }
Restore data from sessionStorage or the window.name when page is reloaded.
Restore data from sessionStorage or the window . name when page is reloaded .