Created
February 3, 2015 13:35
-
-
Save riq363/7d2d5849a0bfe7924a24 to your computer and use it in GitHub Desktop.
Disable back button loop
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
<script> | |
if (document.location.hash != '' ) { | |
history.pushState('', document.title, window.location.pathname); | |
} | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment