diff options
Diffstat (limited to 'ext/flash/01_http.js')
-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; |