MCPcopy Index your code
hub / github.com/ClearURLs/Addon / extractHost

Function extractHost

core_js/tools.js:89–91  ·  view source on GitHub ↗

* Extract the host without port from an url. * @param {URL} url URL as String * @return {String} host as string

(url)

Source from the content-addressed store, hash-verified

87 * @return {String} host as string
88 */
89function extractHost(url) {
90 return url.hostname;
91}
92
93/**
94 * Returns true if the url has a local host.

Callers 1

checkLocalURLFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected