Skip to content

Commit

Permalink
fix(grammar): isOpen --> openInBrowser
Browse files Browse the repository at this point in the history
  • Loading branch information
jrappen committed Mar 18, 2017
1 parent 805f8a0 commit d823a07
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/commands/serve.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const util = require('../util/index')
var exists = util.exists
var resolve = util.resolve

module.exports = function (path, isOpen, port) {
module.exports = function (path, openInBrowser, port) {
path = resolve(path || '.')
var indexFile = resolve(path, 'index.html')

Expand All @@ -28,7 +28,7 @@ module.exports = function (path, isOpen, port) {
exts: ['md']
}).watch(path)

if (isOpen) {
if (openInBrowser) {
open(`http://localhost:${port}`)
}

Expand Down

0 comments on commit d823a07

Please sign in to comment.