Created
May 27, 2011 23:17
-
-
Save tlrobinson/996381 to your computer and use it in GitHub Desktop.
Hack to make NewTwitter use HTML5 pushState instead of annoying hash fragments.
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
twttr.secrets.html5Routing = true; | |
twttr.router._changeUrlAndCallAction = function(p) { | |
return twttr.Router.prototype._changeUrlAndCallAction.call(this, p.replace("#!/", "")); | |
} | |
twttr.router._changeUrlAndCallAction(window.location.hash); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
deadly !