[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:
|
// Required by:
|
||||||
// - jQuery
|
// - jQuery
|
||||||
// - lib-jitsi-meet/modules/RTC/adapter.screenshare.js
|
|
||||||
// - Strophe
|
// - Strophe
|
||||||
if (typeof global.document === 'undefined') {
|
if (typeof global.document === 'undefined') {
|
||||||
const document
|
const document
|
||||||
|
@ -151,14 +150,6 @@ function _visitNode(node, callback) {
|
||||||
document.cookie = '';
|
document.cookie = '';
|
||||||
}
|
}
|
||||||
|
|
||||||
// document.implementation
|
|
||||||
//
|
|
||||||
// Required by:
|
|
||||||
// - jQuery
|
|
||||||
if (typeof document.implementation === 'undefined') {
|
|
||||||
document.implementation = {};
|
|
||||||
}
|
|
||||||
|
|
||||||
// document.implementation.createHTMLDocument
|
// document.implementation.createHTMLDocument
|
||||||
//
|
//
|
||||||
// Required by:
|
// Required by:
|
||||||
|
@ -362,26 +353,9 @@ function _visitNode(node, callback) {
|
||||||
const { navigator } = global;
|
const { navigator } = global;
|
||||||
|
|
||||||
if (navigator) {
|
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
|
// userAgent
|
||||||
//
|
//
|
||||||
// Required by:
|
// Required by:
|
||||||
// - lib-jitsi-meet/modules/RTC/adapter.screenshare.js
|
|
||||||
// - lib-jitsi-meet/modules/browser/BrowserDetection.js
|
// - lib-jitsi-meet/modules/browser/BrowserDetection.js
|
||||||
let userAgent = navigator.userAgent || '';
|
let userAgent = navigator.userAgent || '';
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue