diff options
author | Feross Aboukhadijeh <feross@feross.org> | 2016-05-04 15:24:12 +0300 |
---|---|---|
committer | Feross Aboukhadijeh <feross@feross.org> | 2016-05-04 15:24:12 +0300 |
commit | 0242a1aa0c63b079e8d05bd9a8fbd4e78bc88357 (patch) | |
tree | 81879db80e658c74c9592baa12d56d7b208f5048 | |
parent | 4b008bde484c8c14285977775d6bb53c6a7f7ae8 (diff) |
fix `torrent.swarm` usage
Closes https://github.com/feross/instant.io/issues/109
-rw-r--r-- | lib/torrent.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/torrent.js b/lib/torrent.js index b574fbb..36f15f0 100644 --- a/lib/torrent.js +++ b/lib/torrent.js @@ -206,7 +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 + return this } }) |