diff options
author | Feross Aboukhadijeh <feross@feross.org> | 2016-10-04 09:40:05 +0300 |
---|---|---|
committer | Feross Aboukhadijeh <feross@feross.org> | 2016-10-04 09:40:05 +0300 |
commit | e7fb21ec72b3d5b6ed1612f8a6f452e10de46d11 (patch) | |
tree | 8959e3177f28cfd1c2c9079295f0757959c07ac9 /index.js | |
parent | 1ebdd5cab6fd9537d4f6d77eedd193441c74091c (diff) |
Remove lazy-wrtc code (to be moved into bittorrent-tracker)
Diffstat (limited to 'index.js')
-rw-r--r-- | index.js | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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') { |