ElectronWebContents.on('certificate-error') method
ElectronWebContents › on(‘certificate-error’)
Unofficial
Registers a listener for thecertificate-error event. Signature:
on(event: "certificate-error", listener: (event: ElectronEvent, url: string, error: string, certificate: ElectronCertificate, callback: (isTrusted: boolean) => void, isMainFrame: boolean) => void): thisParameters:
| 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: this — This web contents instance.