Skip to content

ElectronApp.on('certificate-error') method

ElectronApp › on(‘certificate-error’)

Unofficial

Registers a listener for the certificate-error event.

Emitted when failed to verify the certificate for a URL.

Signature:

on(event: "certificate-error", listener: (event: ElectronEvent, webContents: ElectronWebContents, 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, webContents: ElectronWebContents, url: string, error: string, certificate: ElectronCertificate, callback: (isTrusted: boolean) => void, isMainFrame: boolean) => void The event handler.

Returns: thisThis ElectronApp instance.