GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix: ReferenceError: onScriptComplete is not defined when using HMR o… · webpack/webpack@bbb9f38

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • lib/web
    • JsonpMainTemplatePlugin.js
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎lib/web/JsonpMainTemplatePlugin.js‎

Copy file name to clipboardExpand all lines: lib/web/JsonpMainTemplatePlugin.js
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,6 @@ class JsonpMainTemplatePlugin {
173173
"onScriptComplete({ type: 'timeout', target: script });"
174174
]),
175175
`}, ${chunkLoadTimeout});`,
176-
"script.onerror = script.onload = onScriptComplete;",
177176
"function onScriptComplete(event) {",
178177
Template.indent([
179178
"// avoid mem leaks in IE.",
@@ -196,7 +195,8 @@ class JsonpMainTemplatePlugin {
196195
]),
197196
"}"
198197
]),
199-
"};"
198+
"};",
199+
"script.onerror = script.onload = onScriptComplete;"
200200
]);
201201
}
202202
);

0 commit comments

Comments
0 (0)
You are visitor 01402605 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.