Skip to content

Commit

Permalink
feat(headless): add enable remote debugging by default
Browse files Browse the repository at this point in the history
  • Loading branch information
shankarshastri authored and dignifiedquire committed Mar 7, 2018
1 parent cf20be3 commit 0e37f76
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,9 @@ var makeHeadlessVersion = function (Browser) {
Browser.apply(this, arguments)
var execCommand = this._execCommand
this._execCommand = function (command, args) {
execCommand.call(this, command, args.concat('-headless'))
// --start-debugger-server ws:6000 can also be used, since remote debugging protocol also speaks WebSockets
// https://hacks.mozilla.org/2017/12/using-headless-mode-in-firefox/
execCommand.call(this, command, args.concat(['-headless', '--start-debugger-server 6000']))
}
}

Expand Down

0 comments on commit 0e37f76

Please sign in to comment.