Skip to content

ElectronWebContents.on('devtools-opened') method

ElectronWebContents › on(‘devtools-opened’)

Unofficial

Registers a listener for the devtools-opened event.

Signature:

on(event: "devtools-opened", listener: (...args: unknown[]) => void): this

Parameters:

ParameterTypeDescription
event"devtools-opened"The event name.
listener(...args: unknown[]) => voidCalled when the devtools-opened event is emitted.

Returns: thisThis web contents instance.