diff options
author | Saúl Ibarra Corretgé <saghul@gmail.com> | 2017-03-27 10:37:48 +0200 |
---|---|---|
committer | hristoterezov <hristo@jitsi.org> | 2017-03-28 14:51:14 -0500 |
commit | e527b13e5a3bae7f12ad86d5527d5eb035144c6a (patch) | |
tree | 85a548b5fec59a35ae9fe99b996c1d95d16e915e /main.js | |
parent | a2799ad2ecbcdc237655e9d46f3a4ddbec833d2f (diff) |
Avoid certificate checks when loading localhost
Helps with testing, since the webpack dev server uses a self-signed
certificate.
Diffstat (limited to 'main.js')
-rw-r--r-- | main.js | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -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); + } + } + ); } /** |