lib/auth/oauth_util.js
function removeOauthResultFromCurrentUrl() {
  if (window.history && window.history.replaceState) {
    var url = window.location.href;
    var hashIndex = url.indexOf('#');
    window.history.replaceState({},
      document.title, url.substring(0, hashIndex));
  } else {
    window.location.hash = '';
  }
}
function removeOauthResultFromCurrentUrl() {
  if (window.history && window.history.replaceState) {
    var url = window.location.href;
    var hashIndex = url.indexOf('#');
    window.history.replaceState({},
      document.title, url.substring(0, hashIndex));
  } else {
    window.location.hash = '';
  }
}
function removeOauthResultFromCurrentUrl ( ) { if ( window . history && window . history . replaceState ) { var url = window . location . href ; var hashIndex = url . indexOf ( '#' ) ; window . history . replaceState ( { } , document . title , url . substring ( 0 , hashIndex ) ) ; } else { window . location . hash = '' ; } }
Clean Oauth results out of the current browser URL, for security and
cleanliness purposes.
@returns {Object|null} Oauth fields found in the hash of the URL, or null
if the URL does not contain a valid hash.
Clean Oauth results out of the current browser URL for security and cleanliness purposes .