From 96efa7759b78ae8376bc1f1ab2b63992dcf5d8a0 Mon Sep 17 00:00:00 2001 From: hristoterezov Date: Fri, 20 Oct 2017 14:30:43 -0500 Subject: [PATCH] fix(analytics): analytics undefined error due to circular dependency --- react/features/analytics/functions.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/react/features/analytics/functions.js b/react/features/analytics/functions.js index cb92447e4..75f68a866 100644 --- a/react/features/analytics/functions.js +++ b/react/features/analytics/functions.js @@ -8,7 +8,14 @@ import { getJitsiMeetGlobalNS, loadScript } from '../base/util'; const logger = require('jitsi-meet-logger').getLogger(__filename); -export const sendAnalyticsEvent = analytics.sendEvent.bind(analytics); +/** + * Sends an analytics event. + * + * @inheritdoc + */ +export function sendAnalyticsEvent(...args: Array) { + analytics.sendEvent(...args); +} /** * Loads the analytics scripts and inits JitsiMeetJS.analytics by setting