Created
October 25, 2019 11:36
-
-
Save ArtemSites/d6112feabe5966796bca8059f38f07cb to your computer and use it in GitHub Desktop.
Очистка хеша из url при перезагрузке
This file contains hidden or 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
/** | |
* Очистка хеша из url при перезагрузке: | |
*/ | |
var loc = window.location.href, | |
index = loc.indexOf('#'); | |
if (index > 0) { | |
window.location = loc.substring(0, index); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment