mirror of
https://github.com/webtorrent/bittorrent-tracker.git
synced 2025-01-20 21:21:37 +00:00
bittorrent-tracker/client should work if wrtc
fails to install
This commit is contained in:
parent
427e0f4305
commit
814b167e8a
@ -11,7 +11,8 @@ var Socket = require('simple-websocket')
|
|||||||
|
|
||||||
var wrtc
|
var wrtc
|
||||||
try {
|
try {
|
||||||
wrtc = require('wrtc') // WebRTC in node/browser
|
wrtc = require('wrtc') // WebRTC in node - empty object in browser
|
||||||
|
if (!wrtc.RTCPeerConnection) wrtc = null
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
wrtc = null // optional dependency failed to install
|
wrtc = null // optional dependency failed to install
|
||||||
}
|
}
|
||||||
|
@ -14,7 +14,8 @@
|
|||||||
"./lib/common-node": false,
|
"./lib/common-node": false,
|
||||||
"./lib/http-tracker": false,
|
"./lib/http-tracker": false,
|
||||||
"./lib/udp-tracker": false,
|
"./lib/udp-tracker": false,
|
||||||
"./server": false
|
"./server": false,
|
||||||
|
"wrtc": false
|
||||||
},
|
},
|
||||||
"bugs": {
|
"bugs": {
|
||||||
"url": "https://github.com/feross/bittorrent-tracker/issues"
|
"url": "https://github.com/feross/bittorrent-tracker/issues"
|
||||||
|
Loading…
Reference in New Issue
Block a user