Mute audio in headless, closes #350 (#355)

This patch adds the `--mute-audio` flag if chromium is launched in headless
mode.
This commit is contained in:
JoelEinbinder 2017-08-17 20:54:16 -07:00 committed by Andrey Lushnikov
parent b9c7c367ef
commit 1ca7849017

View File

@ -58,7 +58,8 @@ class Launcher {
chromeArguments.push(
`--headless`,
`--disable-gpu`,
`--hide-scrollbars`
`--hide-scrollbars`,
'--mute-audio'
);
}
let chromeExecutable = options.executablePath;