diff --git a/src/Amp.php b/src/Amp.php index 1bdc60d9f..b58d1c562 100644 --- a/src/Amp.php +++ b/src/Amp.php @@ -151,7 +151,9 @@ public static function isRuntimeScript(DOMNode $node) if ( substr($src, -6) !== '/v0.js' + && substr($src, -7) !== '/v0.mjs' && substr($src, -14) !== '/amp4ads-v0.js' + && substr($src, -15) !== '/amp4ads-v0.mjs' ) { return false; }