mirror of
https://gitcode.com/GitHub_Trending/ji/jitsi-meet.git
synced 2026-05-12 18:42:29 +00:00
Use the polyfiller provided by react-native-webrtc. Drop the permissions API polyfill since we no longer use it in the app and lib-jitsi-meet already works without it.
12 lines
334 B
JavaScript
12 lines
334 B
JavaScript
import { registerGlobals } from 'react-native-webrtc';
|
|
|
|
import RTCPeerConnection from './RTCPeerConnection';
|
|
|
|
registerGlobals();
|
|
|
|
(global => {
|
|
// Override with ours.
|
|
// TODO: consider dropping our override.
|
|
global.RTCPeerConnection = RTCPeerConnection;
|
|
})(global || window || this); // eslint-disable-line no-invalid-this
|