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

3202
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -1,6 +1,6 @@
{ {
"name": "image-sequencer", "name": "image-sequencer",
"version": "3.3.0", "version": "3.3.1",
"description": "A modular JavaScript image manipulation library modeled on a storyboard.", "description": "A modular JavaScript image manipulation library modeled on a storyboard.",
"main": "src/ImageSequencer.js", "main": "src/ImageSequencer.js",
"scripts": { "scripts": {

View File

@@ -9,7 +9,7 @@ module.exports = function runInBrowserContext(input, callback, step, options) {
var obj = { input: input, modOptions: minOptions } 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 => { browser.newPage().then(page => {
/* Maybe there is a better way to this, loading the page coz localstorage API /* Maybe there is a better way to this, loading the page coz localstorage API
is not available otherwise */ is not available otherwise */