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…
Reference in New Issue