Last active
October 21, 2016 04:10
-
-
Save alvarezmauro/9bbbff2b6e273e4af412 to your computer and use it in GitHub Desktop.
JS - Get The Current Root URL
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
// Retrieve root URL | |
var rootUrl = location.protocol + '//' + location.host; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment