You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

HideNotificationBarStyle.js 1.3KB

12345678910111213141516171819202122232425262728293031323334353637
  1. import React, { Component } from 'react';
  2. /**
  3. * React component that represents HTML style element with CSS specific to
  4. * unsupported mobile browser components.
  5. *
  6. * @private
  7. * @returns {ReactElement}
  8. */
  9. export default class HideNotificationBarStyles extends Component {
  10. /**
  11. * Implements React's {@link Component#render()}.
  12. *
  13. * @inheritdoc
  14. * @returns {ReactElement}
  15. */
  16. render() {
  17. // Temasys provide lib-jitsi-meet/modules/RTC/adapter.screenshare.js
  18. // which detects whether the browser supports WebRTC. If the browser
  19. // does not support WebRTC, it displays an alert in the form of a yellow
  20. // bar at the top of the page. The alert notifies the user that the
  21. // browser does not support WebRTC and, if Temasys provide a plugin for
  22. // the browser, the alert contains a button to initiate installing the
  23. // browser. When Temasys do not provide a plugin for the browser, we do
  24. // not want the alert on the unsupported-browser page because the
  25. // notification about the lack of WebRTC support is the whole point of
  26. // the unsupported-browser page.
  27. return (
  28. <style type = 'text/css'>
  29. {
  30. 'iframe[name="adapterjs-alert"] { display: none; }'
  31. }
  32. </style>
  33. );
  34. }
  35. }