Created
May 5, 2016 13:26
-
-
Save andreasvirkus/dd8df361d6eeb880df6ead553eae5f6f 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
function clearParams() { | |
var uri = window.location.toString(); | |
if (uri.indexOf("?") > 0) { | |
var clean_uri = uri.substring(0, uri.indexOf("?")); | |
window.history.replaceState({}, document.title, clean_uri); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment