Skip to content

Commit

Permalink
Fix warning check
Browse files Browse the repository at this point in the history
  • Loading branch information
wassgha committed Jun 24, 2020
1 parent 7131b03 commit dd87d37
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions extensions/amp-sidebar/0.1/amp-sidebar.js
Expand Up @@ -155,6 +155,7 @@ export class AmpSidebar extends AMP.BaseElement {
this.element.parentNode != this.getAmpDoc().getBody()
) {
this.user().warn(
TAG,
`${TAG} is recommended to be a direct child of the <body> element to preserve a logical DOM order.`
);
}
Expand Down
1 change: 1 addition & 0 deletions extensions/amp-sidebar/0.2/amp-sidebar.js
Expand Up @@ -165,6 +165,7 @@ export class AmpSidebar extends AMP.BaseElement {
this.element.parentNode != this.getAmpDoc().getBody()
) {
this.user().warn(
TAG,
`${TAG} is recommended to be a direct child of the <body> element to preserve a logical DOM order.`
);
}
Expand Down

0 comments on commit dd87d37

Please sign in to comment.