aboutsummaryrefslogtreecommitdiff
path: root/main.js
diff options
context:
space:
mode:
authorSaúl Ibarra Corretgé <saghul@gmail.com>2017-03-27 10:37:48 +0200
committerhristoterezov <hristo@jitsi.org>2017-03-28 14:51:14 -0500
commite527b13e5a3bae7f12ad86d5527d5eb035144c6a (patch)
tree85a548b5fec59a35ae9fe99b996c1d95d16e915e /main.js
parenta2799ad2ecbcdc237655e9d46f3a4ddbec833d2f (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.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/main.js b/main.js
index af7af97..e775546 100644
--- a/main.js
+++ b/main.js
@@ -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);
+ }
+ }
+ );
}
/**