Skip to content

Commit

Permalink
feat: add support for custom user-data-dir in Chromium
Browse files Browse the repository at this point in the history
Fixes #89
  • Loading branch information
rogeriopvl authored and dignifiedquire committed Mar 5, 2017
1 parent 4110f87 commit 579fcfc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ var ChromiumBrowser = function (baseBrowserDecorator, args) {
baseBrowserDecorator(this)

var flags = args.flags || []
var userDataDir = args.chromeDataDir || this._tempDir

this._getOptions = function (url) {
// Chromium CLI options
Expand All @@ -82,7 +83,7 @@ var ChromiumBrowser = function (baseBrowserDecorator, args) {
})

return [
'--user-data-dir=' + this._tempDir,
'--user-data-dir=' + userDataDir,
'--no-default-browser-check',
'--no-first-run',
'--disable-default-apps',
Expand Down

0 comments on commit 579fcfc

Please sign in to comment.