Skip to content

Commit

Permalink
Remove redundant semicolons after onScriptComplete function close: #1634
Browse files Browse the repository at this point in the history
  • Loading branch information
ahaoboy committed Nov 18, 2022
1 parent 8241da7 commit e967afa
Show file tree
Hide file tree
Showing 2 changed files with 102 additions and 103 deletions.
3 changes: 1 addition & 2 deletions lib/runtime/LoadScriptRuntimeModule.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,7 @@ class LoadScriptRuntimeModule extends HelperRuntimeModule {
"if(prev) return prev(event);"
])
) +
";",
`var timeout = setTimeout(onScriptComplete.bind(null, undefined, { type: 'timeout', target: script }), ${loadTimeout});`,
`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);",
"needAttach && document.head.appendChild(script);"
Expand Down

0 comments on commit e967afa

Please sign in to comment.