Skip to content

Instantly share code, notes, and snippets.

@scottwb
Created June 10, 2012 15:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save scottwb/2906279 to your computer and use it in GitHub Desktop.
Save scottwb/2906279 to your computer and use it in GitHub Desktop.
Hack around URL hash conflicts between jQuery Mobile and AddThis
// Gracefully handle AddThis hashes with jQuery Mobile
$(function() {
if (window.location.hash != '') {
window.location.href = window.location.href.split('#')[0];
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment