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

Whitelist embed types that are allowed to use amp-embed. #1723

Merged
merged 1 commit into from
Feb 2, 2016

Conversation

cramforce
Copy link
Member

No description provided.

@cramforce
Copy link
Member Author

CC @nitzanvolman

@@ -36,6 +36,14 @@ import {register, run} from '../src/3p';
import {parseUrl} from '../src/url';
import {assert} from '../src/asserts';

/**
* Whether the embed type may be used with amp-embed tag.
* @const {!Object<string: boolean>}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can it just be @const {{string: boolean}}

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nope, that is the type for an object that has a field called "string" :)

@erwinmombay
Copy link
Member

@cramforce LGTM with minor question

cramforce added a commit that referenced this pull request Feb 2, 2016
Whitelist embed types that are allowed to use amp-embed.
@cramforce cramforce merged commit 8f18fed into ampproject:master Feb 2, 2016
@cramforce cramforce deleted the embed-type-lock branch February 2, 2016 01:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants