Skip to content

Instantly share code, notes, and snippets.

@ilmsg
Created September 24, 2012 03:11
Show Gist options
  • Save ilmsg/3774008 to your computer and use it in GitHub Desktop.
Save ilmsg/3774008 to your computer and use it in GitHub Desktop.
function part_token(url){
var hashSplit = url.split('#');
if (hashSplit.length > 1) {
return hashSplit[1].split('&')[0];
}
return null;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment