Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Better detection of AMP environment #107

Open
bretg opened this issue Jun 28, 2020 · 0 comments
Open

Better detection of AMP environment #107

bretg opened this issue Jun 28, 2020 · 0 comments

Comments

@bretg
Copy link
Contributor

bretg commented Jun 28, 2020

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();
  }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Ready for Dev
Development

No branches or pull requests

1 participant