mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
This patch adds the `--mute-audio` flag if chromium is launched in headless mode.
This commit is contained in:
parent
b9c7c367ef
commit
1ca7849017
@ -58,7 +58,8 @@ class Launcher {
|
|||||||
chromeArguments.push(
|
chromeArguments.push(
|
||||||
`--headless`,
|
`--headless`,
|
||||||
`--disable-gpu`,
|
`--disable-gpu`,
|
||||||
`--hide-scrollbars`
|
`--hide-scrollbars`,
|
||||||
|
'--mute-audio'
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
let chromeExecutable = options.executablePath;
|
let chromeExecutable = options.executablePath;
|
||||||
|
Loading…
Reference in New Issue
Block a user