From 51e2a3965c296f5b09acac8b6f2cc4c23c055ecb Mon Sep 17 00:00:00 2001 From: Daniel Westendorf Date: Tue, 14 Jan 2020 17:03:16 -0700 Subject: [PATCH] Add the headless switch back, accidentally removed when debugging --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index daabeb3..48f35de 100644 --- a/index.js +++ b/index.js @@ -9,7 +9,7 @@ const webServer = new Server({ console.log('Starting Google Chrome') ChromeLauncher.launch({ - chromeFlags: ['--disable-gpu', '--disable-dev-shm-usage', '--no-sandbox', '--hide-scrollbars'], + chromeFlags: ['--headless', '--disable-gpu', '--disable-dev-shm-usage', '--no-sandbox', '--hide-scrollbars'], port: 9222, startingUrl: (process.env.STARTING_URL || 'about:blank') }).then((chrome) => {