Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

[RN] Remove no longer needed polyfills (#3377)

Saúl Ibarra Corretgédba7f2d4294b
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 69ac940479..8914fbcc35 100644
--- a/react/features/base/lib-jitsi-meet/native/polyfills-browser.js
+++ b/react/features/base/lib-jitsi-meet/native/polyfills-browser.js
@@ -126,7 +126,6 @@ function _visitNode(node, callback) {
//
// Required by:
// - jQuery
- // - lib-jitsi-meet/modules/RTC/adapter.screenshare.js
// - Strophe
if (typeof global.document === 'undefined') {
const document
@@ -151,14 +150,6 @@ function _visitNode(node, callback) {
document.cookie = '';
}
- // document.implementation
- //
- // Required by:
- // - jQuery
- if (typeof document.implementation === 'undefined') {
- document.implementation = {};
- }
-
// document.implementation.createHTMLDocument
//
// Required by:
@@ -362,26 +353,9 @@ function _visitNode(node, callback) {
const { navigator } = global;
if (navigator) {
- // platform
- //
- // Required by:
- // - lib-jitsi-meet/modules/RTC/adapter.screenshare.js
- if (typeof navigator.platform === 'undefined') {
- navigator.platform = '';
- }
-
- // plugins
- //
- // Required by:
- // - lib-jitsi-meet/modules/RTC/adapter.screenshare.js
- if (typeof navigator.plugins === 'undefined') {
- navigator.plugins = [];
- }
-
// userAgent
//
// Required by:
- // - lib-jitsi-meet/modules/RTC/adapter.screenshare.js
// - lib-jitsi-meet/modules/browser/BrowserDetection.js
let userAgent = navigator.userAgent || '';