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:
Diffstat (limited to 'examples/browser-seed.js')
-rw-r--r--examples/browser-seed.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/browser-seed.js b/examples/browser-seed.js
index ea2fbbe..7f8594c 100644
--- a/examples/browser-seed.js
+++ b/examples/browser-seed.js
@@ -5,8 +5,8 @@ var client = new WebTorrent()
// When user drops files on the browser, create a new torrent and start seeding it!
dragDrop('body', function (files) {
- client.seed(files, function onTorrent (torrent) {
+ client.seed(files, function (torrent) {
// Client is seeding the file!
- console.log('Torrent info hash:', torrent.infoHash)
+ console.log('Torrent magnet link:', torrent.magnetURI)
})
})