Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

No Temasys alert on mobile Web

Lyubomir Marinov01ae82eb286d
diff --git a/react/features/unsupported-browser/components/UnsupportedMobileBrowser.js b/react/features/unsupported-browser/components/UnsupportedMobileBrowser.js
index 28f5749997..f140e9df9f 100644
--- a/react/features/unsupported-browser/components/UnsupportedMobileBrowser.js
+++ b/react/features/unsupported-browser/components/UnsupportedMobileBrowser.js
@@ -97,9 +97,40 @@ class UnsupportedMobileBrowser extends Component {
</button>
</a>
</div>
+
+ {
+ this._renderStyle()
+ }
</div>
);
}
+
+ /**
+ * Renders an HTML style element with CSS specific to
+ * this UnsupportedMobileBrowser.
+ *
+ * @private
+ * @returns {ReactElement}
+ */
+ _renderStyle() {
+ // Temasys provide lib-jitsi-meet/modules/RTC/adapter.screenshare.js
+ // which detects whether the browser supports WebRTC. If the browser
+ // does not support WebRTC, it displays an alert in the form of a yellow
+ // bar at the top of the page. The alert notifies the user that the
+ // browser does not support WebRTC and, if Temasys provide a plugin for
+ // the browser, the alert contains a button to initiate installing the
+ // browser. When Temasys do not provide a plugin for the browser, we do
+ // not want the alert on the unsupported-browser page because the
+ // notification about the lack of WebRTC support is the whole point of
+ // the unsupported-browser page.
+ return (
+ <style type = 'text/css'>
+ {
+ 'iframe[name="adapterjs-alert"] { display: none; }'
+ }
+ </style>
+ );
+ }
}
/**