rn: polyfill callstats
Instead of bundling it in lib-jitsi-meet, which unnecessarily increases lib-jitsi-meet's bundle size, polyfill it here so it's available in the global scope, just like the web does.
This commit is contained in:
parent
5d86e3b674
commit
5afb057387
|
@ -381,7 +381,13 @@ function _visitNode(node, callback) {
|
|||
|
||||
// WebRTC
|
||||
require('./polyfills-webrtc');
|
||||
|
||||
// CallStats
|
||||
//
|
||||
// Required by:
|
||||
// - lib-jitsi-meet
|
||||
require('react-native-callstats/csio-polyfill');
|
||||
global.callstats = require('react-native-callstats/callstats');
|
||||
|
||||
// XMLHttpRequest
|
||||
if (global.XMLHttpRequest) {
|
||||
|
|
Loading…
Reference in New Issue