remove --no-sandbox but leave --disable-setuid-sandbox

This commit is contained in:
Jeffrey Warren
2019-04-30 14:10:42 -04:00
committed by GitHub
parent 50da69563d
commit dd7608283f

View File

@@ -9,7 +9,8 @@ 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) {
puppeteer.launch({headless: true, args:['--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 */