Files
upstream-jitsi-meet/react/features/unsupported-browser/components/DefaultUnsupportedDesktopBrowser.tsx
upstream-mirror 1d2bfcac0c
Some checks failed
Prosody Plugin Tests / test (push) Failing after 10m11s
Close stale issues and PRs / stale (push) Failing after 1s
snapshot of https://github.com/jitsi/jitsi-meet.git @ fd1749dd28f4138aa80234fc7f311b19aaffa0e7 (2026-09-15)
2026-09-15 15:56:32 +05:00

39 lines
1.0 KiB
TypeScript

import React, { Component } from 'react';
import JitsiMeetJS from '../../base/lib-jitsi-meet';
/**
* React component representing unsupported browser page.
*
* @class DefaultUnsupportedDesktopBrowser
*/
class DefaultUnsupportedDesktopBrowser extends Component {
/**
* Redirects to the static recommended browsers page or the WebRTC unsupported page.
* IE and other browsers without WebRTC support will show the WebRTC unsupported page.
*
* @returns {void}
*/
override componentDidMount() {
if (!JitsiMeetJS.isWebRtcSupported()) {
(window.location as Mutable<typeof window.location>).pathname = 'static/webrtcUnsupported.html';
} else {
(window.location as Mutable<typeof window.location>).pathname = 'static/recommendedBrowsers.html';
}
}
/**
* Renders the component.
*
* @returns {ReactElement}
*/
override render() {
return (
<div />
);
}
}
export default DefaultUnsupportedDesktopBrowser;