Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ampproject/amphtml
/ getHostname
Method
getHostname
src/core/window/interface.js:39–41 ·
view source on GitHub ↗
* @static * @param {Window} win * @return {string}
(win)
Source
from the content-addressed store, hash-verified
37
* @
return
{string}
38
*/
39
static getHostname(win) {
40
return
win.location.hostname;
41
}
42
43
/**
44
* @static
Callers
2
initialize
Method · 0.80
isDomainMatch_
Method · 0.80
Calls
no outgoing calls
Tested by
no test coverage detected