fix(core): update

This commit is contained in:
2019-11-16 01:15:08 +01:00
parent 656e21c8fd
commit fbb94fe51e
4 changed files with 4 additions and 10 deletions

View File

@ -20,10 +20,7 @@ export const getEnvAwareBrowserInstance = async (
chromeArgs = chromeArgs.concat(['--no-sandbox', '--disable-setuid-sandbox']);
} else if (smartenv.isWsl) {
console.log('Detected WSL. Using chromium.');
chromeArgs = chromeArgs.concat([
'--no-sandbox',
'--single-process'
]);
chromeArgs = chromeArgs.concat(['--no-sandbox', '--single-process']);
}
let headlessBrowser: plugins.puppeteer.Browser;