From 5afb057387e16923273aea7f99396acd7b14e2db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sa=C3=BAl=20Ibarra=20Corretg=C3=A9?= Date: Thu, 31 Jan 2019 14:26:00 +0100 Subject: [PATCH] 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. --- .../base/lib-jitsi-meet/native/polyfills-browser.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/react/features/base/lib-jitsi-meet/native/polyfills-browser.js b/react/features/base/lib-jitsi-meet/native/polyfills-browser.js index 453e6ed74..d47b34c3b 100644 --- a/react/features/base/lib-jitsi-meet/native/polyfills-browser.js +++ b/react/features/base/lib-jitsi-meet/native/polyfills-browser.js @@ -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) {