mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
Fix launcher in case of empty arguments (#582)
The regression was introduced in
d5327e6a0f
This commit is contained in:
parent
d5327e6a0f
commit
8f66f7339e
@ -55,7 +55,7 @@ class Launcher {
|
||||
options = options || {};
|
||||
let temporaryUserDataDir = null;
|
||||
const chromeArguments = [].concat(DEFAULT_ARGS);
|
||||
if (!options.args.some(arg => arg.startsWith('--user-data-dir'))) {
|
||||
if (!options.args || !options.args.some(arg => arg.startsWith('--user-data-dir'))) {
|
||||
if (!options.userDataDir)
|
||||
temporaryUserDataDir = fs.mkdtempSync(CHROME_PROFILE_PATH);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user