diff options
-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 } }) |