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>2015-01-06 07:07:24 +0300
committerFeross Aboukhadijeh <feross@feross.org>2015-01-09 08:24:14 +0300
commitd41cf29cf5e98034470193df9fd4bf18f9b5aeda (patch)
tree420881c6d4e781804eebe5d8ae5724e9b9f4fbd9
parentb2428b831556c15f6cf3da5a9b70204e2a55a727 (diff)
standardize on client.add
-rw-r--r--README.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/README.md b/README.md
index d717c1e..734b2b2 100644
--- a/README.md
+++ b/README.md
@@ -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)