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(initAnalytics): Add catch.

Hristo Terezovc2b2b4eba44a
diff --git a/react/features/analytics/functions.js b/react/features/analytics/functions.js
index ab986fbb53..444f41c010 100644
--- a/react/features/analytics/functions.js
+++ b/react/features/analytics/functions.js
@@ -91,8 +91,11 @@ export function initAnalytics({ getState }: { getState: Function }) {
// Set the handlers last, since this triggers emptying of the cache
analytics.setAnalyticsHandlers(handlers);
- },
- error => analytics.dispose() && logger.error(error));
+ })
+ .catch(error => {
+ analytics.dispose();
+ logger.error(error);
+ });
}
/**