From 9609a0af7206cdbbf8d6be1843af6e3d02508781 Mon Sep 17 00:00:00 2001 From: Jeffrey Warren Date: Fri, 19 Apr 2019 17:34:47 -0400 Subject: [PATCH] update puppeteer for headless --- src/modules/_nomodule/gl-context.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/_nomodule/gl-context.js b/src/modules/_nomodule/gl-context.js index a1ca6787..6b2c08d6 100644 --- a/src/modules/_nomodule/gl-context.js +++ b/src/modules/_nomodule/gl-context.js @@ -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']}).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) { }); }); }); -} \ No newline at end of file +}