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:

Parameter Type Description
event "certificate-error" The event name.
listener (event: ElectronEvent, url: string, error: string, certificate: ElectronCertificate, callback: (isTrusted: boolean) => void, isMainFrame: boolean) => void Called when the certificate-error event is emitted.

Returns: thisThis web contents instance.