Created
April 4, 2016 18:53
-
-
Save lancebecker/55734c211c0b183dfba809eb5802cfd1 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 getQueryParam( param ) { | |
let loc = document.location.search | |
if ( document.location.search && param ) { | |
return document.location.search.split( param + '=' ).pop() | |
} | |
} | |
getQueryParam( 'key' ) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
not sure this scales though