No Temasys alert on mobile Web

This commit is contained in:
Lyubomir Marinov 2017-02-07 21:54:08 -06:00
parent e21eae0933
commit 01ae82eb28
1 changed files with 31 additions and 0 deletions

View File

@ -97,9 +97,40 @@ class UnsupportedMobileBrowser extends Component {
</button> </button>
</a> </a>
</div> </div>
{
this._renderStyle()
}
</div> </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>
);
}
} }
/** /**