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

Function isFromEmbed

src/utils/log.js:625–627  ·  view source on GitHub ↗

* @param {!Window} win * @param {!Element=} opt_element * @return {boolean} isEmbed

(win, opt_element)

Source from the content-addressed store, hash-verified

623 * @return {boolean} isEmbed
624 */
625function isFromEmbed(win, opt_element) {
626 return opt_element && opt_element.ownerDocument.defaultView != win;
627}
628
629/**
630 * Throws an error if the first argument isn't trueish.

Callers 1

userFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected