Avoid certificate checks when loading localhost

Helps with testing, since the webpack dev server uses a self-signed
certificate.
This commit is contained in:
Saúl Ibarra Corretgé 2017-03-27 10:37:48 +02:00 committed by hristoterezov
parent a2799ad2ec
commit e527b13e5a

10
main.js
View file

@ -50,6 +50,16 @@ function setAPPListeners () {
createJitsiMeetWindow();
}
});
APP.on('certificate-error',
(event, webContents, url, error, certificate, callback) => {
if (url.startsWith('https://localhost')) {
event.preventDefault();
callback(true);
} else {
callback(false);
}
}
);
}
/**