Created
October 2, 2020 08:23
-
-
Save user24/9206da054e3a155a93425216dbee2586 to your computer and use it in GitHub Desktop.
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
function getURLParam(param) { | |
if (window.location.search.indexOf(param + '=') === -1) { | |
return undefined; | |
} | |
return window.location.search.split(param + '=')[1].split(/&|#/)[0]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment