From 57d48134d168cc128f075cb7381d773ea028c81e Mon Sep 17 00:00:00 2001 From: Yoshiya Hinosawa Date: Mon, 22 Aug 2022 17:01:43 +0900 Subject: fix(ext/flash): fix default onListen callback (#15533) --- ext/flash/01_http.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'ext') 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; -- cgit v1.2.3