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-12-27 21:38:05 +0300
committerFeross Aboukhadijeh <feross@feross.org>2015-12-27 21:38:05 +0300
commitdc2601ed144b5348e6afa30496d380514836f5d2 (patch)
tree74c1d2be5ce1423334a0a4377f1e987d9eb0500b /examples/browser-seed.js
parent8cff356ce0f6852a80e3b07217ecaa5b1d3e3098 (diff)
examples: simplify
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)
})
})