[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
This commit is contained in:
parent
a896d8f076
commit
dba7f2d429
|
@ -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 || '';
|
||||
|
||||
|
|
Loading…
Reference in New Issue