mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
feat(launcher): launch browser with 'about:blank' by default (#2594)
fixes #2402
This commit is contained in:
committed by
Andrey Lushnikov
parent
1e07925e26
commit
b8df8bdf4a
@@ -93,6 +93,9 @@ class Launcher {
|
||||
'--mute-audio'
|
||||
);
|
||||
}
|
||||
if (!options.ignoreDefaultArgs && Array.isArray(options.args) && options.args.every(arg => arg.startsWith('-')))
|
||||
chromeArguments.push('about:blank');
|
||||
|
||||
let chromeExecutable = options.executablePath;
|
||||
if (typeof chromeExecutable !== 'string') {
|
||||
const browserFetcher = new BrowserFetcher();
|
||||
|
||||
Reference in New Issue
Block a user