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>2016-01-10 20:29:57 +0300
committerFeross Aboukhadijeh <feross@feross.org>2016-01-11 02:09:00 +0300
commitf6290e9d6230538117d2db205596e28986f27066 (patch)
tree086fa0ce21eb49e89f3680431221b0a23c720dcf /README.md
parentadb520d80d36f35e7c9aea18f2164fd23f509949 (diff)
tests: cleanup
Diffstat (limited to 'README.md')
-rw-r--r--README.md8
1 files changed, 4 insertions, 4 deletions
diff --git a/README.md b/README.md
index b0b1731..9c95b65 100644
--- a/README.md
+++ b/README.md
@@ -125,9 +125,9 @@ standards (no plugins, just HTML5 and WebRTC)! It's easy to get started!
var WebTorrent = require('webtorrent')
var client = new WebTorrent()
-var magnetUri = '...'
+var magnetURI = '...'
-client.add(magnetUri, function (torrent) {
+client.add(magnetURI, function (torrent) {
// Got torrent metadata!
console.log('Client is downloading:', torrent.infoHash)
@@ -421,9 +421,9 @@ Here is a usage example:
```js
var client = new WebTorrent()
-var magnetUri = '...'
+var magnetURI = '...'
-client.add(magnetUri, function (torrent) {
+client.add(magnetURI, function (torrent) {
// create HTTP server for this torrent
var server = torrent.createServer()
server.listen(port) // start the server listening to a port