mirror of
https://gitcode.com/GitHub_Trending/ji/jitsi-meet.git
synced 2025-12-30 03:12:29 +00:00
fix(analytics): analytics undefined error due to circular dependency
This commit is contained in:
@@ -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<any>) {
|
||||
analytics.sendEvent(...args);
|
||||
}
|
||||
|
||||
/**
|
||||
* Loads the analytics scripts and inits JitsiMeetJS.analytics by setting
|
||||
|
||||
Reference in New Issue
Block a user