Skip to content
Permalink
Browse files
Merge pull request #7210 from gluecodes/master
fix: ReferenceError: onScriptComplete is not defined when using HMR o…
  • Loading branch information
sokra committed May 28, 2018
2 parents ae6c7a4 + 9791c0b commit 3f183b5a2a9e59b2e4a76e6ce12d64fe40513e4b
Showing 1 changed file with 2 additions and 2 deletions.
@@ -173,7 +173,6 @@ class JsonpMainTemplatePlugin {
"onScriptComplete({ type: 'timeout', target: script });"
]),
`}, ${chunkLoadTimeout});`,
"script.onerror = script.onload = onScriptComplete;",
"function onScriptComplete(event) {",
Template.indent([
"// avoid mem leaks in IE.",
@@ -196,7 +195,8 @@ class JsonpMainTemplatePlugin {
]),
"}"
]),
"};"
"};",
"script.onerror = script.onload = onScriptComplete;"
]);
}
);

0 comments on commit 3f183b5

Please sign in to comment.