Start of a way to override cert issues, for self-signed instances

This commit is contained in:
2023-12-08 00:14:08 +11:00
parent 3fd79df1c2
commit 85017bbfd7
4 changed files with 66 additions and 0 deletions

View File

@@ -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