Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

fix(e2ee) handle Olm initialization error

Saúl Ibarra Corretgé3d7ea5241650
diff --git a/app.js b/app.js
index f59e078526..b276a1cb23 100644
--- a/app.js
+++ b/app.js
@@ -20,7 +20,10 @@ import translation from './modules/translation/translation';
// Initialize Olm as early as possible.
if (window.Olm) {
- window.Olm.init();
+ window.Olm.init().catch(e => {
+ console.error('Failed to initialize Olm, E2EE will be disabled', e);
+ delete window.Olm;
+ });
}
window.APP = {