We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8eb0bb6 commit 21b5a02Copy full SHA for 21b5a02
lib/JsonpMainTemplatePlugin.js
@@ -49,7 +49,7 @@ class JsonpMainTemplatePlugin {
49
});
50
return this.asString([
51
"var script = document.createElement('script');",
52
- `script.type = '${jsonpScriptType}';`,
+ `script.type = ${JSON.stringify(jsonpScriptType)};`,
53
"script.charset = 'utf-8';",
54
"script.async = true;",
55
`script.timeout = ${chunkLoadTimeout};`,
0 commit comments