Skip to content

Commit

Permalink
update amp-script console error to mention data-ampdevmode (ampprojec…
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickkettner authored and rochapablo committed Aug 30, 2021
1 parent 330f314 commit b572a1c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions extensions/amp-script/0.1/amp-script.js
Original file line number Diff line number Diff line change
Expand Up @@ -601,6 +601,7 @@ export class AmpScriptService {
throw user().createError(
TAG,
`Script hash not found or incorrect for ${debugId}. You must include <meta name="amp-script-src" content="sha384-${hash}">. ` +
`During development, you can disable this check by adding the "data-ampdevmode" attribute to ${debugId}, or the root html node` +
'See https://amp.dev/documentation/components/amp-script/#script-hash.'
);
}
Expand Down

0 comments on commit b572a1c

Please sign in to comment.