diff options
-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) |