Created
May 24, 2015 20:25
-
-
Save mike-gusiev/adea5b4f5080faedd3b5 to your computer and use it in GitHub Desktop.
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
window.change_url = function (url) { | |
try { | |
history.pushState({}, '', url); | |
} catch(e) { | |
location.hash = '#' + url; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment