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>2014-11-29 10:58:31 +0300
committerFeross Aboukhadijeh <feross@feross.org>2014-11-29 10:58:31 +0300
commit6abf6bc9a50d6c5b0d34b95a83df3a8dbc4bcc4c (patch)
tree8298eae3658615a6556e8aac401483325c04a055 /index.js
parentac43874204fde89f2c8a3f50e634838b24ac271b (diff)
allow Torrent to be initialized from another Torrent instance
Diffstat (limited to 'index.js')
-rw-r--r--index.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/index.js b/index.js
index f6fcb41..406d65a 100644
--- a/index.js
+++ b/index.js
@@ -194,6 +194,7 @@ WebTorrent.prototype.seed = function (input, opts, onseed) {
onseed = opts
opts = {}
}
+ if (!opts) opts = {}
// TODO: support `input` as string, or array of strings