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"
listener($event: ElectronEvent, killed: boolean) => voidCalled when the crashed event is emitted.

Returns: this — This web contents instance.