Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/webtorrent/webtorrent.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFeross Aboukhadijeh <feross@feross.org>2015-05-04 04:37:28 +0300
committerFeross Aboukhadijeh <feross@feross.org>2015-05-04 04:37:28 +0300
commit4ceef9bc2c30d9db0b280e4ec37ac524edd49c4e (patch)
treed789cb00bf9eeac4a9d4e8ac3b5c926ec5ca5ec7 /index.js
parent6a3b6b98330f0ce38f2f494bfdc3cb0a9e08b72e (diff)
support `webtorrent-hybrid` package
Diffstat (limited to 'index.js')
-rw-r--r--index.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/index.js b/index.js
index 2fb18fe..7de7edb 100644
--- a/index.js
+++ b/index.js
@@ -47,7 +47,7 @@ function WebTorrent (opts) {
self.tracker = opts.tracker !== undefined ? opts.tracker : true
self._rtcConfig = opts.rtcConfig
- self._wrtc = opts.wrtc
+ self._wrtc = opts.wrtc || global.WRTC // to support `webtorrent-hybrid` package
self.torrents = []