diff --git a/src/hub.js b/src/hub.js index d87ce1fbf0d6f3f8b535734f03c68360e5c13b37..3d3098cf282ddd4d7677d925523ed9b391e8eabb 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"; }