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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

馃殌 Disable FixedLayer when page is served canonically #26419

Merged
merged 5 commits into from
Jan 22, 2020

Conversation

kristoferbaxter
Copy link
Contributor

When an AMP document is served canonically (like AMP.dev), the FixedLayer service is not needed.

This change disables the FixedLayer from performing its setup phase while we investigate a longer term fix. (#26397)

@kristoferbaxter
Copy link
Contributor Author

Don't see a way to move this to a draft. Apologies.

*/
setup() {
const viewer = Services.viewerForDoc(this.ampdoc);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Worth considering if this should return a boolean, especially since its only needed for tests.

Copy link
Contributor

@jridgewell jridgewell left a comment

Choose a reason for hiding this comment

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

鉂わ笍

Needs @dvoytenko approval, but LGTM.

@kristoferbaxter
Copy link
Contributor Author

Ping @dvoytenko to review so we can merge.

Copy link
Contributor

@dvoytenko dvoytenko left a comment

Choose a reason for hiding this comment

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

Thanks!

@kristoferbaxter kristoferbaxter merged commit 63cd5aa into ampproject:master Jan 22, 2020
@kristoferbaxter kristoferbaxter deleted the fixed-layer branch January 22, 2020 16:52
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.

None yet

5 participants