mirror of
https://github.com/publiclab/image-sequencer.git
synced 2025-12-11 19:00:00 +01:00
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:
@@ -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) {
|
||||
});
|
||||
});
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user