Skip to content

Commit

Permalink
nit
Browse files Browse the repository at this point in the history
  • Loading branch information
samouri committed Mar 9, 2020
1 parent 61ed871 commit d43dcda
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions extensions/amp-script/0.1/amp-script.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,10 +104,11 @@ export class AmpScript extends AMP.BaseElement {

/** @override */
buildCallback() {
const htmlEl = this.element.ownerDocument.documentElement;
this.development_ =
this.element.hasAttribute('data-ampdevmode') ||
htmlEl.hasAttribute('data-ampdevmode');
this.element.ownerDocument.documentElement.hasAttribute(
'data-ampdevmode'
);

if (this.development_) {
user().warn(
Expand Down

0 comments on commit d43dcda

Please sign in to comment.