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
diff options
context:
space:
mode:
authorFeross Aboukhadijeh <feross@feross.org>2016-05-04 15:24:12 +0300
committerFeross Aboukhadijeh <feross@feross.org>2016-05-04 15:24:12 +0300
commit0242a1aa0c63b079e8d05bd9a8fbd4e78bc88357 (patch)
tree81879db80e658c74c9592baa12d56d7b208f5048
parent4b008bde484c8c14285977775d6bb53c6a7f7ae8 (diff)
fix `torrent.swarm` usage
Closes https://github.com/feross/instant.io/issues/109
-rw-r--r--lib/torrent.js2
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
}
})