['--no-sandbox', '--disable-setuid-sandbox']

This commit is contained in:
Jeffrey Warren
2019-04-30 14:34:11 -04:00
committed by GitHub
parent a3558ade24
commit dd7be2a5fa

View File

@@ -9,7 +9,7 @@ module.exports = function runInBrowserContext(input, callback, step, options) {
var obj = { input: input, modOptions: minOptions }
puppeteer.launch({headless: true, args:['--no-sandbox --disable-setuid-sandbox']}).then(function(browser) {
puppeteer.launch({headless: true, args:['--no-sandbox', '--disable-setuid-sandbox']}).then(function(browser) {
browser.newPage().then(page => {
/* Maybe there is a better way to this, loading the page coz localstorage API
is not available otherwise */