updated puppeteer

This commit is contained in:
Danny Coates 2018-12-19 12:25:05 -08:00
parent 6cc12528b3
commit b71d30fca4
No known key found for this signature in database
GPG key ID: 4C442633C62E00CB
3 changed files with 33 additions and 11 deletions

View file

@ -24,7 +24,12 @@ function onConsole(msg) {
const server = app.listen(async function() {
let exitCode = -1;
const browser = await puppeteer.launch();
const browser = await puppeteer.launch({
args: [
// puppeteer >= 1.10.0 crashes on Circle CI without this flag set
'--no-sandbox'
]
});
try {
const page = await browser.newPage();
page.on('console', onConsole);