|
|
@@ -1,9 +1,7 @@
|
|
1
|
|
-/* global $, callstats */
|
|
|
1
|
+/* global callstats */
|
|
2
|
2
|
const logger = require('jitsi-meet-logger').getLogger(__filename);
|
|
3
|
3
|
const GlobalOnErrorHandler = require('../util/GlobalOnErrorHandler');
|
|
4
|
4
|
|
|
5
|
|
-const jsSHA = require('jssha');
|
|
6
|
|
-const io = require('socket.io-client');
|
|
7
|
5
|
|
|
8
|
6
|
/**
|
|
9
|
7
|
* We define enumeration of wrtcFuncNames as we need them before
|
|
|
@@ -336,8 +334,8 @@ export default class CallStats {
|
|
336
|
334
|
throw new Error('CallStats backend has been initialized already!');
|
|
337
|
335
|
}
|
|
338
|
336
|
try {
|
|
339
|
|
- CallStats.backend
|
|
340
|
|
- = new callstats($, io, jsSHA); // eslint-disable-line new-cap
|
|
|
337
|
+ // eslint-disable-next-line new-cap
|
|
|
338
|
+ CallStats.backend = new callstats();
|
|
341
|
339
|
|
|
342
|
340
|
CallStats._traceAndCatchBackendCalls(CallStats.backend);
|
|
343
|
341
|
|