Skip to content

Commit 299cfef

Browse files
committed
chore: remove webrtcsupport
1 parent aa95ab9 commit 299cfef

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

package.json

-1
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,6 @@
115115
"pull-protocol-buffers": "~0.1.2",
116116
"pull-serializer": "^0.3.2",
117117
"sinon": "^7.2.7",
118-
"webrtcsupport": "^2.2.0",
119118
"wrtc": "^0.4.1"
120119
},
121120
"contributors": [

test/switch/browser.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
/* eslint-env mocha */
22
'use strict'
33

4-
const w = require('webrtcsupport')
4+
const wrtcSupport = self.RTCPeerConnection && ('createDataChannel' in self.RTCPeerConnection.prototype)
55

66
require('./transports.browser.js')
77
require('./swarm-muxing+websockets.browser')
88

9-
if (w.support) {
9+
if (wrtcSupport) {
1010
require('./t-webrtc-star.browser')
1111
require('./swarm-muxing+webrtc-star.browser')
1212
}

0 commit comments

Comments
 (0)