From 1684c0ec5f90facc0b960ddc77572c0f29e527fa Mon Sep 17 00:00:00 2001 From: Greg Fodor <gfodor@gmail.com> Date: Tue, 24 Apr 2018 17:20:43 -0700 Subject: [PATCH] Fixes from PR #271 --- src/hub.js | 2 +- src/react-components/ui-root.js | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/hub.js b/src/hub.js index 3d3098cf2..d87ce1fbf 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 70a26a798..ab1d0229b 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 { -- GitLab