Skip to content

ElectronWebContents.on('crashed') method

ElectronWebContents › on(‘crashed’)

Unofficial

Registers a listener for the crashed event.

Signature:

on(event: "crashed", listener: (event: ElectronEvent, killed: boolean) => void): this

Parameters:

ParameterTypeDescription
event"crashed"The event name.
listener(event: ElectronEvent, killed: boolean) => voidCalled when the crashed event is emitted.

Returns: thisThis web contents instance.