ElectronApp.on('certificate-error') method
ElectronApp › on(‘certificate-error’)
Unofficial
Registers a listener for thecertificate-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): thisParameters:
| Parameter | Type | Description |
|---|---|---|
| $event | "certificate-error" | |
| listener | ($event: ElectronEvent, webContents: ElectronWebContents, url: string, error: string, certificate: ElectronCertificate, callback: (isTrusted: boolean) => void, isMainFrame: boolean) => void | The event handler. |
Returns: this — This ElectronApp instance.