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:
authorBigard Florian <florian.bigard@gmail.com>2015-07-14 19:05:20 +0300
committerBigard Florian <florian.bigard@gmail.com>2015-07-14 19:05:20 +0300
commit632b234ce6d55d484454e6ba626d1ec68c941899 (patch)
tree43046ad241da2ed227c753f088182c5113a621e0 /README.md
parent7330639f355c615c09b3c7b4951be4af4e4168cc (diff)
Fix appendTo Readme
We have to specify a callback
Diffstat (limited to 'README.md')
-rw-r--r--README.md4
1 files changed, 3 insertions, 1 deletions
diff --git a/README.md b/README.md
index 91f5b31..9ff8e30 100644
--- a/README.md
+++ b/README.md
@@ -176,7 +176,9 @@ client.add(magnetUri, function (torrent) {
// Stream the video!
// Specify a container element (CSS selector or reference to DOM node)
- file.appendTo('body')
+ file.appendTo('body', function(err, elem) {
+ if (err) throw err
+ })
})
```