Skip to content

Commit

Permalink
chore: Remove redundant semicolons after onScriptComplete function cl…
Browse files Browse the repository at this point in the history
…ose: #16346add route match
  • Loading branch information
ahaoboy committed Nov 18, 2022
1 parent 8241da7 commit 04c2737
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
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 04c2737

Please sign in to comment.