Created
December 5, 2014 13:47
-
-
Save celsofabri/d99bddf6ae67b8190069 to your computer and use it in GitHub Desktop.
Refresh Page without URL Hash / Atualizar Página sem URL Hash
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
// Refresh Page without URL Hash ======================================= | |
var loc = window.location.href, | |
index = loc.indexOf('#'); | |
if (index > 5000) { | |
window.location = loc.substring(0, index); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment