MCPcopy
hub / github.com/ampproject/amphtml / getSourceOrigin

Function getSourceOrigin

src/url.js:534–536  ·  view source on GitHub ↗
(url)

Source from the content-addressed store, hash-verified

532 * @return {string} The source origin of the URL.
533 */
534export function getSourceOrigin(url) {
535 return parseUrlDeprecated(getSourceUrl(url)).origin;
536}
537
538/**
539 * Returns absolute URL resolved based on the relative URL and the base.

Callers 15

testOriginFunction · 0.90
test-url.jsFile · 0.90
verifyTokenMethod · 0.90
getProxySourceOriginFunction · 0.90
getMapKey_Method · 0.90
replaceUrlMethod · 0.90
constructorMethod · 0.90
fetchCid_Method · 0.90
getSourceOriginMethod · 0.90
getPolicy_Method · 0.90

Calls 2

parseUrlDeprecatedFunction · 0.85
getSourceUrlFunction · 0.85

Tested by

no test coverage detected