ElectronWebContents.on('devtools-opened') method
ElectronWebContents › on(‘devtools-opened’)
Unofficial
Registers a listener for thedevtools-opened event. Signature:
on(event: "devtools-opened", listener: (...args: unknown[]) => void): thisParameters:
| Parameter | Type | Description |
|---|---|---|
| event | "devtools-opened" | The event name. |
| listener | (...args: unknown[]) => void | Called when the devtools-opened event is emitted. |
Returns: this — This web contents instance.