Skip to content

Instantly share code, notes, and snippets.

@scottwb
Created June 10, 2012 15:40
Show Gist options
  • Select an option

  • Save scottwb/2906279 to your computer and use it in GitHub Desktop.

Select an option

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