Created
September 23, 2016 08:36
-
-
Save mrTimofey/51989623c57c5ea29ba51770ac29f11a to your computer and use it in GitHub Desktop.
Change hash without affecting history
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
let hash = window.location.hash.replace('#', ''); | |
window.history.replaceState('', '', '#' + hash); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment