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-10-04 09:40:05 +0300
committerFeross Aboukhadijeh <feross@feross.org>2016-10-04 09:40:05 +0300
commite7fb21ec72b3d5b6ed1612f8a6f452e10de46d11 (patch)
tree8959e3177f28cfd1c2c9079295f0757959c07ac9 /index.js
parent1ebdd5cab6fd9537d4f6d77eedd193441c74091c (diff)
Remove lazy-wrtc code (to be moved into bittorrent-tracker)
Diffstat (limited to 'index.js')
-rw-r--r--index.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/index.js b/index.js
index dfaed8d..708571d 100644
--- a/index.js
+++ b/index.js
@@ -103,8 +103,9 @@ function WebTorrent (opts) {
console.warn('WebTorrent: opts.wrtc is deprecated. Use opts.tracker.wrtc instead')
self.tracker.wrtc = opts.wrtc
}
- if (global.WRTC && !self.tracker.wrtc) self.tracker.wrtc = global.WRTC
- if (typeof self.tracker.wrtc === 'function') self.tracker.wrtc = self.tracker.wrtc() // Initialize
+ if (global.WRTC && !self.tracker.wrtc) {
+ self.tracker.wrtc = global.WRTC
+ }
}
if (typeof TCPPool === 'function') {