feat(chromium): use no-startup-window to not create default context (#1106)
This commit is contained in:
parent
c7ade1a711
commit
dcdc7db158
|
|
@ -8,7 +8,7 @@
|
||||||
},
|
},
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"playwright": {
|
"playwright": {
|
||||||
"chromium_revision": "740847",
|
"chromium_revision": "744254",
|
||||||
"firefox_revision": "1029",
|
"firefox_revision": "1029",
|
||||||
"webkit_revision": "1155"
|
"webkit_revision": "1155"
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -191,6 +191,8 @@ export class Chromium implements BrowserType {
|
||||||
'--mute-audio'
|
'--mute-audio'
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
if (launchType !== 'persistent')
|
||||||
|
chromeArguments.push('--no-startup-window');
|
||||||
chromeArguments.push(...args);
|
chromeArguments.push(...args);
|
||||||
if (args.every(arg => arg.startsWith('-')))
|
if (args.every(arg => arg.startsWith('-')))
|
||||||
chromeArguments.push('about:blank');
|
chromeArguments.push('about:blank');
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue