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.4KB

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