Add feature to have chrome ignore certificate errors when printing using an URL.

This commit is contained in:
Tom van den Berg
2020-06-01 15:31:36 +02:00
parent d28221aec9
commit 24cbe98ac2
4 changed files with 33 additions and 9 deletions

View File

@@ -28,7 +28,7 @@ func main() {
systemLogger.DebugOpf(op, "configuration: %+v", config)
if !config.DisableGoogleChrome() {
// start Google Chrome headless.
if err := chrome.Start(systemLogger); err != nil {
if err := chrome.Start(systemLogger, config.IgnoreCertificateErrors()); err != nil {
systemLogger.FatalOp(op, err)
}
}