Created
August 12, 2019 12:23
-
-
Save ABooooo/8ffccf53487d2c2b725b2606b4c62672 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 uri = window.location.toString(); | |
if (uri.indexOf("?") > 0) { | |
var clean_uri = uri.replace(/[^?=&]+=(&|$)/g,"").replace(/&$/,""); | |
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