update puppeteer for headless (#1031)

* update puppeteer for headless

* version bump for v3.1.1 bugfix

* --disable-setuid-sandbox

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

* Update gl-context.js

* ['--no-sandbox', '--disable-setuid-sandbox']
This commit is contained in:
Jeffrey Warren
2019-04-30 14:41:41 -04:00
committed by GitHub
parent 8b110c241f
commit 43a8d0f2c1
3 changed files with 1612 additions and 1596 deletions

View File

@@ -9,7 +9,7 @@ module.exports = function runInBrowserContext(input, callback, step, options) {
var obj = { input: input, modOptions: minOptions }
puppeteer.launch().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 */
@@ -34,4 +34,4 @@ module.exports = function runInBrowserContext(input, callback, step, options) {
});
});
});
}
}