mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
Fix running on Travis-Ci
This commit is contained in:
parent
422e09c8ef
commit
9e6f779322
@ -3,6 +3,7 @@ node_js:
|
|||||||
- "7"
|
- "7"
|
||||||
dist: trusty
|
dist: trusty
|
||||||
env:
|
env:
|
||||||
|
- DISABLE_CHROMIUM_SANDBOX=true
|
||||||
cache:
|
cache:
|
||||||
yarn: true
|
yarn: true
|
||||||
directories:
|
directories:
|
||||||
|
@ -51,6 +51,8 @@ class Browser {
|
|||||||
`--disable-gpu`,
|
`--disable-gpu`,
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
if (process.env['DISABLE_CHROMIUM_SANDBOX'])
|
||||||
|
this._chromeArguments.push('--no-sandbox');
|
||||||
if (typeof options.executablePath === 'string') {
|
if (typeof options.executablePath === 'string') {
|
||||||
this._chromeExecutable = options.executablePath;
|
this._chromeExecutable = options.executablePath;
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user