From dba7f2d4294b701d0053ec2c26580948a13869f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sa=C3=BAl=20Ibarra=20Corretg=C3=A9?= Date: Fri, 17 Aug 2018 06:03:53 +0200 Subject: [PATCH] [RN] Remove no longer needed polyfills (#3377) - navigator.{platform,plugins} were needed by the no longer existing screenshare adapter - document.implementation is already polyfilled by xmldom --- .../native/polyfills-browser.js | 26 ------------------- 1 file changed, 26 deletions(-) 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 69ac94047..8914fbcc3 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 || '';