Pass launch options
This commit is contained in:
parent
f0ae98ad4d
commit
7f45568b57
|
|
@ -61,7 +61,7 @@ export class BrowserContext extends ChannelOwner<channels.BrowserContextChannel>
|
|||
readonly _backgroundPages = new Set<Page>();
|
||||
readonly _serviceWorkers = new Set<Worker>();
|
||||
readonly _isChromium: boolean;
|
||||
_harRecorders = new Map<string, { path: string, content: 'embed' | 'attach' | 'omit' | undefined }>();
|
||||
private _harRecorders = new Map<string, { path: string, content: 'embed' | 'attach' | 'omit' | undefined }>();
|
||||
_closeWasCalled = false;
|
||||
private _closeReason: string | undefined;
|
||||
private _harRouters: HarRouter[] = [];
|
||||
|
|
|
|||
|
|
@ -57,7 +57,7 @@ export class Electron extends ChannelOwner<channels.ElectronChannel> implements
|
|||
tracesDir: options.tracesDir,
|
||||
};
|
||||
const app = ElectronApplication.from((await this._channel.launch(params)).electronApplication);
|
||||
app._context._setOptions(params, {});
|
||||
app._context._setOptions(params, options);
|
||||
return app;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue