Created
October 23, 2019 14:03
-
-
Save Pum-purum/5cadefe6cbcc30737f39293ba14e3fe9 to your computer and use it in GitHub Desktop.
JS add and delete params
This file contains 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 url = new URL(location.href); | |
url.searchParams.delete('LG'); | |
url.searchParams.set('LG', 'YES'); | |
location.href = url.href; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment