Skip to content

Commit

Permalink
update amp-script console error to mention data-ampdevmode (#34235)
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickkettner authored May 6, 2021
1 parent 30d62af commit 370e686
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 370e686

Please sign in to comment.