Fix running on Travis-Ci

This commit is contained in:
Andrey Lushnikov 2017-06-20 19:47:12 -07:00
parent 422e09c8ef
commit 9e6f779322
2 changed files with 3 additions and 0 deletions

View File

@ -3,6 +3,7 @@ node_js:
- "7"
dist: trusty
env:
- DISABLE_CHROMIUM_SANDBOX=true
cache:
yarn: true
directories:

View File

@ -51,6 +51,8 @@ class Browser {
`--disable-gpu`,
]);
}
if (process.env['DISABLE_CHROMIUM_SANDBOX'])
this._chromeArguments.push('--no-sandbox');
if (typeof options.executablePath === 'string') {
this._chromeExecutable = options.executablePath;
} else {