prebid-universal-creative icon indicating copy to clipboard operation
prebid-universal-creative copied to clipboard

Better detection of AMP environment

Open bretg opened this issue 5 years ago • 0 comments

Ran across this TODO in the code -- the AMP context is now available according to the AMP issue:

  function isAmp(uuid) {
    // TODO Use amp context once it is available in cross domain
    // https://github.com/ampproject/amphtml/issues/6829
    return typeof uuid === 'string' && uuid !== "" && isCrossDomain();
  }

bretg avatar Jun 28 '20 00:06 bretg