Created
March 28, 2017 15:56
-
-
Save troy-lamerton/4bbcde9e929afcb71311a337878c982d to your computer and use it in GitHub Desktop.
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
var hashIndex = window.location.href.indexOf('#'); // 31 | |
var stringBeforeHash = window.location.href.slice(0, hashIndex); | |
console.info('new href', stringBeforeHash); | |
window.location.href = stringBeforeHash; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment