updated puppeteer
This commit is contained in:
parent
6cc12528b3
commit
b71d30fca4
3 changed files with 33 additions and 11 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue