Skip to content

Conversation

@gmajoulet
Copy link
Contributor

@gmajoulet gmajoulet commented May 21, 2018

this.actions_.addToWhitelist('AMP-CONSENT.accept');
this.actions_.addToWhitelist('AMP-CONSENT.reject');
// Story consent config is set by the `assertAndParseConfig_` method.
if (this.storyConsentConfig_) {
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: since you checked with user().assert() I don't think this is necessary.

Copy link
Contributor

Choose a reason for hiding this comment

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

talked offline. did this to pass linter check.
@gmajoulet You may want to add details here : )

Copy link
Contributor Author

Choose a reason for hiding this comment

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

For some reason the linter didn't accept a user().assert or a /** @type {!Object} (...) */...

const script = childElementByTag(parentEl, 'script');
this.consentConfig_ = parseJson(script.textContent);
const consentScript = childElementByTag(parentEl, 'script');
this.consentConfig_ = parseJson(consentScript.textContent);
Copy link
Contributor

Choose a reason for hiding this comment

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

ditto

Copy link
Contributor

@zhouyx zhouyx left a comment

Choose a reason for hiding this comment

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

lgtm. Thanks for the change!

@gmajoulet gmajoulet force-pushed the gdpr_consent_moving_json_config branch from 9dead8c to 41afdbe Compare May 22, 2018 15:57
@gmajoulet gmajoulet merged commit 347c22c into ampproject:master May 22, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants