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:
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 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') {