Created
June 10, 2012 15:40
-
-
Save scottwb/2906279 to your computer and use it in GitHub Desktop.
Hack around URL hash conflicts between jQuery Mobile and AddThis
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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