Fix running on Travis-Ci
This commit is contained in:
parent
eb02af93b6
commit
7874108fda
@ -3,6 +3,7 @@ node_js:
|
||||
- "7"
|
||||
dist: trusty
|
||||
env:
|
||||
- DISABLE_CHROMIUM_SANDBOX=true
|
||||
cache:
|
||||
yarn: true
|
||||
directories:
|
||||
|
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user