function updateURL() {
  try {
    window.history.replaceState({} , null, '#' + currentPosition());
  } catch (e) {
    window.location.hash = currentPosition();
  }
}
function updateURL() {
  try {
    window.history.replaceState({} , null, '#' + currentPosition());
  } catch (e) {
    window.location.hash = currentPosition();
  }
}
function updateURL ( ) { try { window . history . replaceState ( { } , null , '#' + currentPosition ( ) ) ; } catch ( e ) { window . location . hash = currentPosition ( ) ; } }
Updates the current URL to include a hashtag of the current page number.
Updates the current URL to include a hashtag of the current page number .