From 70584c5092cb112aa38f6e68bc8b1f66862b58f4 Mon Sep 17 00:00:00 2001 From: Patrick Kettner Date: Wed, 5 May 2021 15:02:55 -0400 Subject: [PATCH] update amp-script console error to mention data-ampdevmode --- extensions/amp-script/0.1/amp-script.js | 1 + 1 file changed, 1 insertion(+) diff --git a/extensions/amp-script/0.1/amp-script.js b/extensions/amp-script/0.1/amp-script.js index 4d8ed64fc722..b169f758bbb3 100644 --- a/extensions/amp-script/0.1/amp-script.js +++ b/extensions/amp-script/0.1/amp-script.js @@ -601,6 +601,7 @@ export class AmpScriptService { throw user().createError( TAG, `Script hash not found or incorrect for ${debugId}. You must include . ` + + `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.' ); }