Skip to content

Instantly share code, notes, and snippets.

@vontell
Created January 16, 2018 20:19
Show Gist options
  • Save vontell/621978bb803a775c55d396c1661f9e11 to your computer and use it in GitHub Desktop.
Save vontell/621978bb803a775c55d396c1661f9e11 to your computer and use it in GitHub Desktop.
001 Get Url
/**
* Returns the saved URL given the shortened URL (generated by this program)
* shortenedURL - A shortened URL generated by this program instance
*/
function getURLFromShortened(shortenedURL) {
return urlDictionary[shortenedURL.replace(baseDomain, "")];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment