Skip to content

Commit

Permalink
Support injected JS in script tag with type module (fixed #13)
Browse files Browse the repository at this point in the history
ris58h committed Feb 11, 2024

Unverified

This user has not yet uploaded their public signing key.
1 parent 3de1119 commit 374714a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
@@ -63,5 +63,5 @@ class HtmlRelatedScriptsProcessor : RelatedScriptsProcessor {

fun isJavaScriptScriptTag(scriptTag: XmlTag): Boolean {
val type = scriptTag.getAttributeValue("type")
return type.isNullOrEmpty() || type == "text/javascript"
return type.isNullOrEmpty() || type == "text/javascript" || type == "module"
}

0 comments on commit 374714a

Please sign in to comment.