Skip to content

ElectronApp.on('renderer-process-crashed') method

ElectronApp › on(‘renderer-process-crashed’)

Unofficial

Registers a listener for the renderer-process-crashed event.

Emitted when the renderer process of webContents crashes or is killed.

Signature:

on($event: "renderer-process-crashed", listener: ($event: ElectronEvent, webContents: ElectronWebContents, killed: boolean) => void): this

Parameters:

ParameterTypeDescription
$event"renderer-process-crashed"
listener($event: ElectronEvent, webContents: ElectronWebContents, killed: boolean) => voidThe event handler.

Returns: this — This ElectronApp instance.