diff --git a/src/hub.js b/src/hub.js index 3d3098cf282ddd4d7677d925523ed9b391e8eabb..d87ce1fbf0d6f3f8b535734f03c68360e5c13b37 100644 --- a/src/hub.js +++ b/src/hub.js @@ -309,7 +309,7 @@ const onReady = async () => { }; const getPlatformUnsupportedReason = () => { - if (typeof RTCDataChannelEvent === "undefined") { + if (typeof RTCPeerConnection.prototype.createDataChannel === "undefined") { return "no_data_channels"; } diff --git a/src/react-components/ui-root.js b/src/react-components/ui-root.js index 70a26a79850fd6b45150603fda962c50e60a51ec..ab1d0229b0b529a6e3d9131df82e683f6097e11a 100644 --- a/src/react-components/ui-root.js +++ b/src/react-components/ui-root.js @@ -529,7 +529,7 @@ class UIRoot extends Component { If you have questions, contact us at <a href="mailto:hubs@mozilla.com">hubs@mozilla.com</a>. <p /> If you'd like to run your own server, hubs's source code is available on{" "} - <a href="https://github.com/mozilla/hubs">Github</a>. + <a href="https://github.com/mozilla/hubs">GitHub</a>. </div> ); } else if (this.props.platformUnsupportedReason === "no_data_channels") { @@ -537,12 +537,12 @@ class UIRoot extends Component { subtitle = ( <div> Your browser does not support{" "} - <a href="https://developer.mozilla.org/en-US/docs/Web/API/RTCDataChannel" rel="noreferrer noopener"> + <a + href="https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/createDataChannel#Browser_compatibility" + rel="noreferrer noopener" + > WebRTC Data Channels </a>, which is required to use Hubs. - <p /> - You can <a href="https://firefox.com">Download Firefox</a>, a browser that protects your privacy and works - great with Hubs. </div> ); } else {