diff options
author | Yoshiya Hinosawa <stibium121@gmail.com> | 2022-08-21 21:27:14 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-21 21:27:14 +0900 |
commit | fb2aeb79a113e576ff2cc4f1bf3fc30741969508 (patch) | |
tree | 7a991db21a1a4e84cc2018bbfbf336e3ec0ef5e8 /ext/flash/01_http.js | |
parent | 906aa78af33c8405a47d5446d2a6fb3348c275bb (diff) |
fix(ext/flash): fix listening port (#15519)
Diffstat (limited to 'ext/flash/01_http.js')
-rw-r--r-- | ext/flash/01_http.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/flash/01_http.js b/ext/flash/01_http.js index d850a1520..e8debd5ec 100644 --- a/ext/flash/01_http.js +++ b/ext/flash/01_http.js @@ -216,8 +216,8 @@ const serverId = core.ops.op_flash_serve(opts); const serverPromise = core.opAsync("op_flash_drive_server", serverId); - core.opAsync("op_flash_wait_for_listening", serverId).then(() => { - onListen({ hostname: opts.hostname, port: opts.port }); + core.opAsync("op_flash_wait_for_listening", serverId).then((port) => { + onListen({ hostname: opts.hostname, port }); }); const server = { |