fix(core): update

This commit is contained in:
Philipp Kunz 2019-06-03 13:45:57 +02:00
parent 5c0b8c4df0
commit f97866fe82

View File

@ -23,7 +23,13 @@ export class SmartPdf {
async start() {
// setup puppeteer
if (!this.headlessBrowser) {
this.headlessBrowser = await plugins.puppeteer.launch();
let chromeArgs: string[] = [];
if(process.env.CI) {
chromeArgs = chromeArgs.concat(['--no-sandbox', '--disable-setuid-sandbox'])
}
this.headlessBrowser = await plugins.puppeteer.launch({
args: chromeArgs
});
} else {
this.externalBrowser = true;
}