Ver código fonte

fix(analytics): analytics undefined error due to circular dependency

j8
hristoterezov 7 anos atrás
pai
commit
96efa7759b
1 arquivos alterados com 8 adições e 1 exclusões
  1. 8
    1
      react/features/analytics/functions.js

+ 8
- 1
react/features/analytics/functions.js Ver arquivo

@@ -8,7 +8,14 @@ import { getJitsiMeetGlobalNS, loadScript } from '../base/util';
8 8
 
9 9
 const logger = require('jitsi-meet-logger').getLogger(__filename);
10 10
 
11
-export const sendAnalyticsEvent = analytics.sendEvent.bind(analytics);
11
+/**
12
+ * Sends an analytics event.
13
+ *
14
+ * @inheritdoc
15
+ */
16
+export function sendAnalyticsEvent(...args: Array<any>) {
17
+    analytics.sendEvent(...args);
18
+}
12 19
 
13 20
 /**
14 21
  * Loads the analytics scripts and inits JitsiMeetJS.analytics by setting

Carregando…
Cancelar
Salvar