Skip to content

ElectronWebContents.on('did-fail-provisional-load') method

ElectronWebContents › on(‘did-fail-provisional-load’)

Unofficial

Registers a listener for the did-fail-provisional-load event.

Signature:

on($event: "did-fail-provisional-load", listener: ($event: ElectronEvent, errorCode: number, errorDescription: string, validatedURL: string, isMainFrame: boolean, frameProcessId: number, frameRoutingId: number) => void): this

Parameters:

ParameterTypeDescription
$event"did-fail-provisional-load"
listener($event: ElectronEvent, errorCode: number, errorDescription: string, validatedURL: string, isMainFrame: boolean, frameProcessId: number, frameRoutingId: number) => voidCalled when the did-fail-provisional-load event is emitted.

Returns: this — This web contents instance.