diff options
Diffstat (limited to 'src/service/location.js')
| -rw-r--r-- | src/service/location.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/service/location.js b/src/service/location.js index 31323284..a5875b72 100644 --- a/src/service/location.js +++ b/src/service/location.js @@ -199,7 +199,7 @@ angularServiceInject("$location", function($browser) { */ function composeHref(loc) { var url = toKeyValue(loc.search); - var port = (loc.port == DEFAULT_PORTS[loc.protocol] ? _null : loc.port); + var port = (loc.port == DEFAULT_PORTS[loc.protocol] ? null : loc.port); return loc.protocol + '://' + loc.host + (port ? ':' + port : '') + loc.path + @@ -233,7 +233,7 @@ angularServiceInject("$location", function($browser) { loc.href = href.replace(/#$/, ''); loc.protocol = match[1]; loc.host = match[3] || ''; - loc.port = match[5] || DEFAULT_PORTS[loc.protocol] || _null; + loc.port = match[5] || DEFAULT_PORTS[loc.protocol] || null; loc.path = match[6] || ''; loc.search = parseKeyValue(match[8]); loc.hash = match[10] || ''; |
