diff options
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 = { |