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>2016-05-14 03:27:17 +0300
committerFeross Aboukhadijeh <feross@feross.org>2016-05-14 03:27:17 +0300
commit70715181c921e5f42b5ef13be7adc44059632a46 (patch)
treea4bf2494390b4a2513d2ef59f9c1a0c2a1e75f70
parentc3acb343e916cb898549bb155cb6a4366fb1b91f (diff)
don't unset {tracker: {wrtc: false}} option
-rw-r--r--index.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/index.js b/index.js
index 3a69d3c..6e047a2 100644
--- a/index.js
+++ b/index.js
@@ -92,7 +92,7 @@ function WebTorrent (opts) {
console.warn('WebTorrent: opts.wrtc is deprecated. Use opts.tracker.wrtc instead')
self.tracker.wrtc = opts.wrtc // to support `webtorrent-hybrid` package
}
- if (!self.tracker.wrtc) self.tracker.wrtc = global.WRTC
+ if (global.WRTC && !self.tracker.wrtc) self.tracker.wrtc = global.WRTC
}
if (typeof TCPPool === 'function') {