From 4ceef9bc2c30d9db0b280e4ec37ac524edd49c4e Mon Sep 17 00:00:00 2001 From: Feross Aboukhadijeh Date: Sun, 3 May 2015 18:37:28 -0700 Subject: support `webtorrent-hybrid` package --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'index.js') diff --git a/index.js b/index.js index 2fb18fe..7de7edb 100644 --- a/index.js +++ b/index.js @@ -47,7 +47,7 @@ function WebTorrent (opts) { self.tracker = opts.tracker !== undefined ? opts.tracker : true self._rtcConfig = opts.rtcConfig - self._wrtc = opts.wrtc + self._wrtc = opts.wrtc || global.WRTC // to support `webtorrent-hybrid` package self.torrents = [] -- cgit v1.2.3