Created
August 18, 2016 03:35
-
-
Save yanni4night/1d147858922dcd7bf153dc211004668f 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
if (this.slashes || (!protocol || slashedProtocol[protocol]) && host !== false) { | |
host = '//' + (host || ''); | |
if (pathname && pathname.charCodeAt(0) !== 47/*/*/) | |
pathname = '/' + pathname; | |
} else if (!host) { | |
host = ''; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment