MCPcopy
hub / github.com/binux/qiandao / parseAbsoluteUrl

Function parseAbsoluteUrl

web/static/components/angularjs/angular.js:9136–9142  ·  view source on GitHub ↗
(absoluteUrl, locationObj, appBase)

Source from the content-addressed store, hash-verified

9134}
9135
9136function parseAbsoluteUrl(absoluteUrl, locationObj, appBase) {
9137 var parsedUrl = urlResolve(absoluteUrl, appBase);
9138
9139 locationObj.$$protocol = parsedUrl.protocol;
9140 locationObj.$$host = parsedUrl.hostname;
9141 locationObj.$$port = int(parsedUrl.port) || DEFAULT_PORTS[parsedUrl.protocol] || null;
9142}
9143
9144
9145function parseAppUrl(relativeUrl, locationObj, appBase) {

Callers 2

LocationHtml5UrlFunction · 0.85
LocationHashbangUrlFunction · 0.85

Calls 2

intFunction · 0.85
urlResolveFunction · 0.70

Tested by

no test coverage detected