diff options
author | Feross Aboukhadijeh <feross@feross.org> | 2015-01-06 07:07:24 +0300 |
---|---|---|
committer | Feross Aboukhadijeh <feross@feross.org> | 2015-01-09 08:24:14 +0300 |
commit | d41cf29cf5e98034470193df9fd4bf18f9b5aeda (patch) | |
tree | 420881c6d4e781804eebe5d8ae5724e9b9f4fbd9 | |
parent | b2428b831556c15f6cf3da5a9b70204e2a55a727 (diff) |
standardize on client.add
-rw-r--r-- | README.md | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -107,7 +107,7 @@ var WebTorrent = require('webtorrent') var client = new WebTorrent() -client.download(magnet_uri, function (torrent) { +client.add(magnet_uri, function (torrent) { // Got torrent metadata! console.log('Torrent info hash:', torrent.infoHash) @@ -151,7 +151,7 @@ var WebTorrent = require('webtorrent') var client = new WebTorrent() -client.download(magnet_uri, function (torrent) { +client.add(magnet_uri, function (torrent) { // Got torrent metadata! console.log('Torrent info hash:', torrent.infoHash) |