Skip to content

Commit 98900a0

Browse files
authored
update dependencies & rewrite to promise (#225)
1 parent 38b97d0 commit 98900a0

File tree

3 files changed

+382
-305
lines changed

3 files changed

+382
-305
lines changed

examples/kitchensink/index.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -430,11 +430,9 @@ app.listen(port, () => {
430430
console.log(`listening on ${baseURL}:${port}/callback`);
431431
} else {
432432
console.log("It seems that BASE_URL is not set. Connecting to ngrok...")
433-
ngrok.connect(port, (err, url) => {
434-
if (err) throw err;
435-
433+
ngrok.connect(port).then(url => {
436434
baseURL = url;
437435
console.log(`listening on ${baseURL}/callback`);
438-
});
436+
}).catch(console.error);
439437
}
440438
});

0 commit comments

Comments
 (0)