mirror of
https://github.com/webtorrent/bittorrent-tracker.git
synced 2025-01-31 10:31:36 +00:00
Allow {wrtc: false} to disable WebRTC support
This commit is contained in:
parent
808a9201cb
commit
0d9ee4c93a
@ -64,7 +64,7 @@ function Client (opts) {
|
|||||||
|
|
||||||
debug('new client %s', self.infoHash)
|
debug('new client %s', self.infoHash)
|
||||||
|
|
||||||
var webrtcSupport = !!self._wrtc || typeof window !== 'undefined'
|
var webrtcSupport = self._wrtc !== false && (!!self._wrtc || typeof window !== 'undefined')
|
||||||
|
|
||||||
var announce = (typeof opts.announce === 'string')
|
var announce = (typeof opts.announce === 'string')
|
||||||
? [ opts.announce ]
|
? [ opts.announce ]
|
||||||
|
Loading…
Reference in New Issue
Block a user