Skip to content

Instantly share code, notes, and snippets.

@gigablah
Created September 19, 2012 15:26
Show Gist options
  • Save gigablah/3750245 to your computer and use it in GitHub Desktop.
Save gigablah/3750245 to your computer and use it in GitHub Desktop.
Facebook post-auth redirect hash removal
if (window.history && window.history.replaceState && window.location.hash == '#_=_') {
var loc = window.location;
window.history.replaceState({}, document.title, loc.protocol + '//' + loc.host + loc.pathname);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment