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

Function isInFie

src/iframe-helper.js:599–604  ·  view source on GitHub ↗
(element)

Source from the content-addressed store, hash-verified

597 * @return {boolean}
598 */
599export function isInFie(element) {
600 return (
601 element.classList.contains('i-amphtml-fie') ||
602 !!closestAncestorElementBySelector(element, '.i-amphtml-fie')
603 );
604}

Callers 8

isCookieAllowedFunction · 0.90
getMacrosMethod · 0.90
isAlwaysFixedMethod · 0.90
isInAd_Method · 0.90
isCookieAllowed_Method · 0.90

Calls 2

containsMethod · 0.45

Tested by

no test coverage detected