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
path: root/lib
diff options
context:
space:
mode:
authorFeross Aboukhadijeh <feross@feross.org>2016-04-24 03:55:29 +0300
committerFeross Aboukhadijeh <feross@feross.org>2016-04-24 03:55:29 +0300
commitb120c5ed4b850e1c6edc6388c0e66443b4ce4e5c (patch)
treea94afbc08dbc8e04f0180b3216a1b5c5af65e57c /lib
parent675ed147b0b53549a2dbc82eaff4660c60425d80 (diff)
make `torrent.swarm` work
Diffstat (limited to 'lib')
-rw-r--r--lib/torrent.js1
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
}
})