MCPcopy Create free account
hub / github.com/ampproject/amphtml / getViewerOrigin

Method getViewerOrigin

src/service/viewer-interface.js:130–130  ·  view source on GitHub ↗

* Returns the promise that resolves to URL representing the origin of the * viewer. If the document is not embedded or if a viewer origin can't be * found, empty string is returned. * @return {!Promise }

()

Source from the content-addressed store, hash-verified

128 * @return {!Promise<string>}
129 */
130 getViewerOrigin() {}
131
132 /**
133 * Adds a eventType listener for viewer events.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected