From 36d34d40d3ae1d1509d01fd4205474dfff58bfe5 Mon Sep 17 00:00:00 2001
From: Greg Fodor <gfodor@gmail.com>
Date: Tue, 24 Apr 2018 17:24:54 -0700
Subject: [PATCH] Revert to old Data Channel compat check

---
 src/hub.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/hub.js b/src/hub.js
index d87ce1fbf..3d3098cf2 100644
--- a/src/hub.js
+++ b/src/hub.js
@@ -309,7 +309,7 @@ const onReady = async () => {
   };
 
   const getPlatformUnsupportedReason = () => {
-    if (typeof RTCPeerConnection.prototype.createDataChannel === "undefined") {
+    if (typeof RTCDataChannelEvent === "undefined") {
       return "no_data_channels";
     }
 
-- 
GitLab