Start of a way to override cert issues, for self-signed instances
This commit is contained in:
@@ -346,5 +346,12 @@ function system(mainWindow, dir, lang, dirname) {
|
||||
}
|
||||
})
|
||||
})
|
||||
function trust_insecure(event, webContents, url, error, certificate, callback)
|
||||
{
|
||||
if (url.startsWith('^')) // TODO: Load this from a conf file/option for each account, whatever.
|
||||
{ event.preventDefault(); callback(true)}
|
||||
else { callback(false) }
|
||||
}
|
||||
//app.on('certificate-error',trust_insecure)
|
||||
}
|
||||
exports.system = system
|
||||
|
Reference in New Issue
Block a user