From 1ca784901743792726e3896ed4d4809a66d6a213 Mon Sep 17 00:00:00 2001 From: JoelEinbinder Date: Thu, 17 Aug 2017 20:54:16 -0700 Subject: [PATCH] Mute audio in headless, closes #350 (#355) This patch adds the `--mute-audio` flag if chromium is launched in headless mode. --- lib/Launcher.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/Launcher.js b/lib/Launcher.js index e991bd99..b8d2282f 100644 --- a/lib/Launcher.js +++ b/lib/Launcher.js @@ -58,7 +58,8 @@ class Launcher { chromeArguments.push( `--headless`, `--disable-gpu`, - `--hide-scrollbars` + `--hide-scrollbars`, + '--mute-audio' ); } let chromeExecutable = options.executablePath;