Skip to content

ElectronWebContents.on('certificate-error') method

ElectronWebContents › on(‘certificate-error’)

Unofficial

Registers a listener for the certificate-error event.

Signature:

on($event: "certificate-error", listener: ($event: ElectronEvent, url: string, error: string, certificate: ElectronCertificate, callback: (isTrusted: boolean) => void, isMainFrame: boolean) => void): this

Parameters:

ParameterTypeDescription
$event"certificate-error"
listener($event: ElectronEvent, url: string, error: string, certificate: ElectronCertificate, callback: (isTrusted: boolean) => void, isMainFrame: boolean) => voidCalled when the certificate-error event is emitted.

Returns: this — This web contents instance.