Skip to content
Snippets Groups Projects
Commit e527b13e authored by Saúl Ibarra Corretgé's avatar Saúl Ibarra Corretgé Committed by hristoterezov
Browse files

Avoid certificate checks when loading localhost

Helps with testing, since the webpack dev server uses a self-signed
certificate.
parent a2799ad2
No related branches found
No related tags found
No related merge requests found
......@@ -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);
}
}
);
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment