mirror of
https://github.com/status-im/embark-area-51.git
synced 2025-01-11 14:34:40 +00:00
simplify syntax
This commit is contained in:
parent
2b816af9a8
commit
e19b3b2f51
@ -69,7 +69,7 @@ exports.serve = async function (ipc, host, port, ws, origin) {
|
||||
const start = Date.now();
|
||||
|
||||
function awaitTarget() {
|
||||
return new Promise((resolve, reject) => {
|
||||
return new Promise(resolve => {
|
||||
utils.pingEndpoint(
|
||||
canonicalHost(host), port, ws ? 'ws': false, 'http', _origin, async (err) => {
|
||||
if (!err || (Date.now() - start > 10000)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user