Skip to content

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

analytics: avoid error log when there are no handlers

Saúl Ibarra Corretgé53281c2d42a3
diff --git a/react/features/analytics/functions.js b/react/features/analytics/functions.js
index 65f9bfc18b..ede59c5552 100644
--- a/react/features/analytics/functions.js
+++ b/react/features/analytics/functions.js
@@ -117,7 +117,9 @@ export function createHandlers({ getState }: { getState: Function }) {
})
.catch(e => {
analytics.dispose();
- logger.error(e);
+ if (handlers.length !== 0) {
+ logger.error(e);
+ }
return [];
}));