Skip to content

Commit

Permalink
fix undefined head error
Browse files Browse the repository at this point in the history
  • Loading branch information
huan committed Jun 28, 2016
1 parent 9291bfc commit 75510f2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/puppet-web-browser.js
Expand Up @@ -26,7 +26,7 @@ class Browser extends EventEmitter {
} = {}) {
super()
log.verbose('PuppetWebBrowser', 'constructor()')
this.head = head
this.head = head || false
this.sessionFile = sessionFile // a file to save session cookies

this.live = false
Expand Down Expand Up @@ -205,6 +205,8 @@ class Browser extends EventEmitter {
browserRe = 'chrome(?!driver)'
break
case false:
case undefined:
case null:
case 'phantomjs':
browserRe = 'phantomjs'
break
Expand Down

0 comments on commit 75510f2

Please sign in to comment.