mirror of
https://github.com/finos/SymphonyElectron.git
synced 2024-12-29 02:11:28 -06:00
SDA-3140 Certificates validation bugfix (#1400)
This commit is contained in:
parent
871430ccb5
commit
9823d77761
@ -668,11 +668,9 @@ export class WindowHandler {
|
||||
});
|
||||
|
||||
// Certificate verification proxy
|
||||
if (!isDevEnv) {
|
||||
this.mainWebContents.session.setCertificateVerifyProc(
|
||||
handleCertificateProxyVerification,
|
||||
);
|
||||
}
|
||||
|
||||
app.on('browser-window-focus', () => {
|
||||
this.registerGlobalShortcuts();
|
||||
|
@ -689,8 +689,8 @@ export const handleCertificateProxyVerification = (
|
||||
) {
|
||||
return callback(0);
|
||||
}
|
||||
|
||||
return callback(-2);
|
||||
// We let chromium handle the verification result. In case chromium detects a certificate error, then 'certificate-error' event will be triggered.
|
||||
return callback(-3);
|
||||
};
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user