Browse Source

[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
master
Saúl Ibarra Corretgé 6 years ago
parent
commit
dba7f2d429
1 changed files with 0 additions and 26 deletions
  1. 0
    26
      react/features/base/lib-jitsi-meet/native/polyfills-browser.js

+ 0
- 26
react/features/base/lib-jitsi-meet/native/polyfills-browser.js View File

126
     //
126
     //
127
     // Required by:
127
     // Required by:
128
     // - jQuery
128
     // - jQuery
129
-    // - lib-jitsi-meet/modules/RTC/adapter.screenshare.js
130
     // - Strophe
129
     // - Strophe
131
     if (typeof global.document === 'undefined') {
130
     if (typeof global.document === 'undefined') {
132
         const document
131
         const document
151
             document.cookie = '';
150
             document.cookie = '';
152
         }
151
         }
153
 
152
 
154
-        // document.implementation
155
-        //
156
-        // Required by:
157
-        // - jQuery
158
-        if (typeof document.implementation === 'undefined') {
159
-            document.implementation = {};
160
-        }
161
-
162
         // document.implementation.createHTMLDocument
153
         // document.implementation.createHTMLDocument
163
         //
154
         //
164
         // Required by:
155
         // Required by:
362
     const { navigator } = global;
353
     const { navigator } = global;
363
 
354
 
364
     if (navigator) {
355
     if (navigator) {
365
-        // platform
366
-        //
367
-        // Required by:
368
-        // - lib-jitsi-meet/modules/RTC/adapter.screenshare.js
369
-        if (typeof navigator.platform === 'undefined') {
370
-            navigator.platform = '';
371
-        }
372
-
373
-        // plugins
374
-        //
375
-        // Required by:
376
-        // - lib-jitsi-meet/modules/RTC/adapter.screenshare.js
377
-        if (typeof navigator.plugins === 'undefined') {
378
-            navigator.plugins = [];
379
-        }
380
-
381
         // userAgent
356
         // userAgent
382
         //
357
         //
383
         // Required by:
358
         // Required by:
384
-        // - lib-jitsi-meet/modules/RTC/adapter.screenshare.js
385
         // - lib-jitsi-meet/modules/browser/BrowserDetection.js
359
         // - lib-jitsi-meet/modules/browser/BrowserDetection.js
386
         let userAgent = navigator.userAgent || '';
360
         let userAgent = navigator.userAgent || '';
387
 
361
 

Loading…
Cancel
Save