1
1
mirror of https://github.com/jxnblk/mdx-deck.git synced 2024-11-29 13:58:02 +03:00

Merge pull request #24 from jxnblk/fix-open-option

Fix --no-open option
This commit is contained in:
Brent Jackson 2018-07-31 18:02:47 -04:00 committed by GitHub
commit 94318e8af5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

2
cli.js
View File

@ -125,7 +125,7 @@ switch (cmd) {
ok(opts)
.then(res => {
const url = 'http://localhost:' + res.port
open(url)
if (opts.open) open(url)
log('listening on', chalk.magenta(url))
})
.catch(err => {