mirror of
https://github.com/ElectronNET/Electron.NET.git
synced 2026-09-22 15:04:47 +00:00
Feedback from code review. Improving logging of the domain names that will be ignored.
This commit is contained in:
@@ -84,9 +84,7 @@ if (manifestJsonFile.ignoreAllCertificateErrors) {
|
||||
// Bypass SSL/TLS certificate errors only for the domain names specified in the electron.manifest.json file.
|
||||
if (manifestJsonFile.hasOwnProperty('domainNamesToIgnoreCertificateErrors')) {
|
||||
if (manifestJsonFile.domainNamesToIgnoreCertificateErrors.length > 0) {
|
||||
manifestJsonFile.domainNamesToIgnoreCertificateErrors.forEach(function (site) {
|
||||
console.log('SSL/TLS certificate errors will be ignored for ' + site);
|
||||
});
|
||||
console.log(`SSL/TLS certificate errors will be ignored for ${manifestJsonFile.domainNamesToIgnoreCertificateErrors.join(', ')}`);
|
||||
|
||||
app.on('certificate-error', (event, webContents, url, error, certificate, callback) => {
|
||||
if (shouldIgnoreCertificateForUrl(url)) {
|
||||
|
||||
Reference in New Issue
Block a user