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:
-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)