mirror of
https://github.com/publiclab/image-sequencer.git
synced 2025-12-13 20:00:05 +01:00
update puppeteer for headless
This commit is contained in:
@@ -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']}).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 */
|
||||||
@@ -34,4 +34,4 @@ module.exports = function runInBrowserContext(input, callback, step, options) {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user