Skip to content

Commit

Permalink
Merge pull request #16347 from ahaoboy/main
Browse files Browse the repository at this point in the history
Remove redundant semicolons after onScriptComplete function close: #16346
  • Loading branch information
TheLarkInn committed Mar 13, 2023
2 parents 0f82297 + 04c2737 commit 8f1b5ff
Show file tree
Hide file tree
Showing 2 changed files with 59 additions and 60 deletions.
3 changes: 1 addition & 2 deletions lib/runtime/LoadScriptRuntimeModule.js
Original file line number Diff line number Diff line change
Expand Up @@ -146,8 +146,7 @@ class LoadScriptRuntimeModule extends HelperRuntimeModule {
)});`,
"if(prev) return prev(event);"
])
) +
";",
),
`var timeout = setTimeout(onScriptComplete.bind(null, undefined, { type: 'timeout', target: script }), ${loadTimeout});`,
"script.onerror = onScriptComplete.bind(null, script.onerror);",
"script.onload = onScriptComplete.bind(null, script.onload);",
Expand Down

0 comments on commit 8f1b5ff

Please sign in to comment.