MCPcopy Index your code
hub / github.com/ampproject/amphtml / getHrefWithoutHost

Function getHrefWithoutHost

build-system/server/app-utils.js:92–94  ·  view source on GitHub ↗
({host, href, protocol})

Source from the content-addressed store, hash-verified

90 * @return {string}
91 */
92const getHrefWithoutHost = ({host, href, protocol}) =>
93 // 2 slashes // between protocol and host
94 href.substr(protocol.length + 2 + host.length);
95
96/**
97 * @param {string} mode

Callers 1

replaceCdnJsUrlsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected