Skip to content

Commit

Permalink
Account for .mjs scripts in isRuntimeScript
Browse files Browse the repository at this point in the history
  • Loading branch information
westonruter committed Apr 6, 2021
1 parent a3a99fd commit 4bad718
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Amp.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 4bad718

Please sign in to comment.