diff options
author | Feross Aboukhadijeh <feross@feross.org> | 2016-04-24 03:55:29 +0300 |
---|---|---|
committer | Feross Aboukhadijeh <feross@feross.org> | 2016-04-24 03:55:29 +0300 |
commit | b120c5ed4b850e1c6edc6388c0e66443b4ce4e5c (patch) | |
tree | a94afbc08dbc8e04f0180b3216a1b5c5af65e57c | |
parent | 675ed147b0b53549a2dbc82eaff4660c60425d80 (diff) |
make `torrent.swarm` work
-rw-r--r-- | lib/torrent.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/torrent.js b/lib/torrent.js index 03fa0db..98ec91b 100644 --- a/lib/torrent.js +++ b/lib/torrent.js @@ -206,6 +206,7 @@ Object.defineProperty(Torrent.prototype, '_numConns', { Object.defineProperty(Torrent.prototype, 'swarm', { get: function () { console.log('WebTorrent: `torrent.swarm` is deprecated. Use `torrent` directly instead.') + return this.swarm } }) |