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:

ParameterTypeDescription
event"certificate-error"The event name.
listener(event: ElectronEvent, webContents: ElectronWebContents, url: string, error: string, certificate: ElectronCertificate, callback: (isTrusted: boolean) => void, isMainFrame: boolean) => voidThe event handler.

Returns: thisThis ElectronApp instance.