diff options
author | Yoshiya Hinosawa <stibium121@gmail.com> | 2022-08-22 17:01:43 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-22 17:01:43 +0900 |
commit | 57d48134d168cc128f075cb7381d773ea028c81e (patch) | |
tree | e60a5ef22ffb9e6b42aaded54ed5c42f3988f4d1 /ext | |
parent | 301f6c46ba4491e9aec76037ae9d01365693b0e4 (diff) |
fix(ext/flash): fix default onListen callback (#15533)
Diffstat (limited to 'ext')
-rw-r--r-- | ext/flash/01_http.js | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/ext/flash/01_http.js b/ext/flash/01_http.js index e8debd5ec..9fda597c7 100644 --- a/ext/flash/01_http.js +++ b/ext/flash/01_http.js @@ -205,11 +205,9 @@ return new Response("Internal Server Error", { status: 500 }); }; delete opts.onError; - const onListen = opts.onListen ?? function () { + const onListen = opts.onListen ?? function ({ port }) { console.log( - `Listening on http://${ - hostnameForDisplay(opts.hostname) - }:${opts.port}/`, + `Listening on http://${hostnameForDisplay(opts.hostname)}:${port}/`, ); }; delete opts.onListen; |