Skip to content

Commit

Permalink
Ensure that success message adapts when using --clipless
Browse files Browse the repository at this point in the history
  • Loading branch information
leo committed Jun 24, 2017
1 parent c783001 commit 6ce4aed
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions bin/serve.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,16 +82,18 @@ detect(port).then(open => {
}
}

const listenArgs = [
server,
current,
inUse,
flags.clipless !== true,
flags.open
]

server.listen(
port,
coroutine(function*() {
yield listening(
server,
current,
inUse,
flags.noClipboard !== true,
flags.open
)
yield listening(...listenArgs)
})
)
})

0 comments on commit 6ce4aed

Please sign in to comment.