Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.
TypeScript debiandeep-videojitsijitsi-meetscalable-video-conferencessfuvideovideo-communicationvideo-conferencingwebrtc
feat(BrowserSupport): remove PluginRequiredBrowser
Saúl Ibarra Corretgéacb3bd7ad728
diff --git a/react/features/app/functions.web.js b/react/features/app/functions.web.jsindex 86bd6a424a..15f8eff7bf 100644--- a/react/features/app/functions.web.js+++ b/react/features/app/functions.web.js@@ -2,10 +2,7 @@import { toState } from '../base/redux';import { getDeepLinkingPage } from '../deep-linking';-import {- PluginRequiredBrowser,- UnsupportedDesktopBrowser-} from '../unsupported-browser';+import { UnsupportedDesktopBrowser } from '../unsupported-browser';import {// eslint-disable-next-line camelcase@@ -30,19 +27,8 @@ const _INTERCEPT_COMPONENT_RULES = [state => {const { webRTCReady } = state['features/base/lib-jitsi-meet'];- switch (typeof webRTCReady) {- case 'boolean':- if (webRTCReady === false) {- return Promise.resolve(UnsupportedDesktopBrowser);- }- break;-- case 'undefined':- // If webRTCReady is not set, then we cannot base a decision on it.- break;-- default:- return Promise.resolve(PluginRequiredBrowser);+ if (webRTCReady === false) {+ return Promise.resolve(UnsupportedDesktopBrowser);}return Promise.resolve();diff --git a/react/features/unsupported-browser/components/PluginRequiredBrowser.js b/react/features/unsupported-browser/components/PluginRequiredBrowser.jsdeleted file mode 100644index 2cb5ac4157..0000000000--- a/react/features/unsupported-browser/components/PluginRequiredBrowser.js+++ /dev/null@@ -1,47 +0,0 @@-/* @flow */--import React, { Component } from 'react';--import { CHROME, CHROMIUM, FIREFOX } from './browserLinks';--/**- * React component representing plugin installation required page.- *- * @class PluginRequiredBrowser- */-export default class PluginRequiredBrowser extends Component<*> {-- /**- * Renders the component.- *- * @returns {ReactElement}- */- render() {- const ns = 'unsupported-desktop-browser';- const nsLink = `${ns}__link`;-- return (- <div className = { ns }>- <h2 className = { `${ns}__title` }>- Your browser requires a plugin for this conversation.- </h2>- <p className = { `${ns}__description_small` }>- Once you install the plugin, it will be possible for you to- have your conversation here. For the best experience,- however, we strongly recommend that you do that using- the - <a- className = { nsLink }- href = { CHROME }>Chrome</a>, - <a- className = { nsLink }- href = { CHROMIUM }>Chromium</a> or - <a- className = { nsLink }- href = { FIREFOX }>Firefox</a> browsers.- </p>- </div>- );- }-}-diff --git a/react/features/unsupported-browser/components/index.js b/react/features/unsupported-browser/components/index.jsindex 142fbf8410..fc0d8e0fd2 100644--- a/react/features/unsupported-browser/components/index.js+++ b/react/features/unsupported-browser/components/index.js@@ -1,3 +1,2 @@-export { default as PluginRequiredBrowser } from './PluginRequiredBrowser';export { default as UnsupportedDesktopBrowser }from './UnsupportedDesktopBrowser';