diff options
author | Diego RodrÃguez Baquero <diegorbaquero@gmail.com> | 2016-10-03 21:33:10 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-10-03 21:33:10 +0300 |
commit | b73c9791b57b09a98a7cc3faeee5ec6d8e8767bc (patch) | |
tree | 0be5b81864f112a01bc4029e5ad60761b1797002 /index.js | |
parent | d10579a9f6b5639115615665e55bb23a7cb503fe (diff) |
Initialize WRTC
Diffstat (limited to 'index.js')
-rw-r--r-- | index.js | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -101,9 +101,10 @@ function WebTorrent (opts) { if (opts.wrtc) { // TODO: remove in v1 console.warn('WebTorrent: opts.wrtc is deprecated. Use opts.tracker.wrtc instead') - self.tracker.wrtc = opts.wrtc // to support `webtorrent-hybrid` package + 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 (typeof TCPPool === 'function') { |