mirror of
https://github.com/microsoft/playwright.git
synced 2025-06-26 21:40:17 +00:00
chore(electron): put client-provided arguments in front (#16782)
Fixes #16614
This commit is contained in:
parent
b57b30033a
commit
6ebd3ea61f
@ -125,7 +125,7 @@ export class Electron extends SdkObject {
|
|||||||
controller.setLogName('browser');
|
controller.setLogName('browser');
|
||||||
return controller.run(async progress => {
|
return controller.run(async progress => {
|
||||||
let app: ElectronApplication | undefined = undefined;
|
let app: ElectronApplication | undefined = undefined;
|
||||||
const electronArguments = ['--inspect=0', '--remote-debugging-port=0', ...args];
|
const electronArguments = [...args, '--inspect=0', '--remote-debugging-port=0'];
|
||||||
|
|
||||||
if (os.platform() === 'linux') {
|
if (os.platform() === 'linux') {
|
||||||
const runningAsRoot = process.geteuid && process.geteuid() === 0;
|
const runningAsRoot = process.geteuid && process.geteuid() === 0;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user