isExtraneousPopstateEvent = function isExtraneousPopstateEvent(event) {
  return event.state === undefined && navigator.userAgent.indexOf('CriOS') === -1;
}
Returns true if a given popstate event is an extraneous WebKit event.
Accounts for the fact that Chrome on iOS fires real popstate events
containing undefined state when pressing the back button.