Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.
TypeScript debiandeep-videojitsijitsi-meetscalable-video-conferencessfuvideovideo-communicationvideo-conferencingwebrtc
feat(mobile/polyfills): strophe.js for react native (#14329)
Calinteodord5ee7f3069c9
diff --git a/package-lock.json b/package-lock.jsonindex c06c9ab7ae..1f5d473ea9 100644--- a/package-lock.json+++ b/package-lock.json@@ -42,6 +42,7 @@"@vladmandic/human": "2.6.5","@vladmandic/human-models": "2.5.9","@xmldom/xmldom": "0.8.7",+ "abab": "2.0.6","amplitude-js": "8.2.1","base64-js": "1.5.1","bc-css-flags": "3.0.0",@@ -7517,7 +7518,8 @@"node_modules/abab": {"version": "2.0.6","resolved": "https://registry.npmjs.org/abab/-/abab-2.0.6.tgz",- "integrity": "sha512-j2afSsaIENvHZN2B8GOpF566vZ5WVk5opAiMTvWgaQT8DkbOqsTfvNAvHoRGU2zzP8cPoqys+xHTRDWW8L+/BA=="+ "integrity": "sha512-j2afSsaIENvHZN2B8GOpF566vZ5WVk5opAiMTvWgaQT8DkbOqsTfvNAvHoRGU2zzP8cPoqys+xHTRDWW8L+/BA==",+ "deprecated": "Use your platform's native atob() and btoa() methods instead"},"node_modules/abort-controller": {"version": "3.0.0",diff --git a/package.json b/package.jsonindex 3be89df29d..b72582f150 100644--- a/package.json+++ b/package.json@@ -48,6 +48,7 @@"@vladmandic/human": "2.6.5","@vladmandic/human-models": "2.5.9","@xmldom/xmldom": "0.8.7",+ "abab": "2.0.6","amplitude-js": "8.2.1","base64-js": "1.5.1","bc-css-flags": "3.0.0",diff --git a/react/features/mobile/polyfills/browser.js b/react/features/mobile/polyfills/browser.jsindex f67613fed7..6bd172791b 100644--- a/react/features/mobile/polyfills/browser.js+++ b/react/features/mobile/polyfills/browser.js@@ -1,4 +1,5 @@import { DOMParser } from '@xmldom/xmldom';+import { atob, btoa } from 'abab';import { Platform } from 'react-native';import BackgroundTimer from 'react-native-background-timer';import { TextDecoder, TextEncoder } from 'text-encoding';@@ -317,4 +318,20 @@ function _visitNode(node, callback) {global.TextDecoder = TextDecoder;global.TextEncoder = TextEncoder;+ // atob+ //+ // Required by:+ // - Strophe+ if (typeof global.atob === 'undefined') {+ global.atob = atob;+ }++ // btoa+ //+ // Required by:+ // - Strophe+ if (typeof global.btoa === 'undefined') {+ global.btoa = btoa;+ }+})(global || window || this); // eslint-disable-line no-invalid-this