Skip to content

Commit 21b5a02

Browse files
committed
stringify jsonpScriptType option
1 parent 8eb0bb6 commit 21b5a02

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/JsonpMainTemplatePlugin.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ class JsonpMainTemplatePlugin {
4949
});
5050
return this.asString([
5151
"var script = document.createElement('script');",
52-
`script.type = '${jsonpScriptType}';`,
52+
`script.type = ${JSON.stringify(jsonpScriptType)};`,
5353
"script.charset = 'utf-8';",
5454
"script.async = true;",
5555
`script.timeout = ${chunkLoadTimeout};`,

0 commit comments

Comments
 (0)