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-02-01 03:17:06 +0300
committerFeross Aboukhadijeh <feross@feross.org>2015-02-01 03:17:06 +0300
commitfd13be21374455fd8676d9ed0c4f8d85282a9659 (patch)
tree4f66053853df0bb170b077d7346f4afe9468bb40 /index.js
parent4bf38d895f3a2b8fe7a33f740b8eb80ba3ab8823 (diff)
use xtend
Diffstat (limited to 'index.js')
-rw-r--r--index.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/index.js b/index.js
index a78f1ab..ab41bfe 100644
--- a/index.js
+++ b/index.js
@@ -7,7 +7,7 @@ var createTorrent = require('create-torrent')
var debug = require('debug')('webtorrent')
var DHT = require('bittorrent-dht/client') // browser exclude
var EventEmitter = require('events').EventEmitter
-var extend = require('extend.js')
+var extend = require('xtend')
var hat = require('hat')
var inherits = require('inherits')
var loadIPSet = require('load-ip-set') // browser exclude
@@ -156,7 +156,7 @@ WebTorrent.prototype.download = function (torrentId, opts, ontorrent) {
if (!opts.storageOpts) opts.storageOpts = {}
if (opts.tmp) opts.storageOpts.tmp = opts.tmp
- var torrent = new Torrent(torrentId, extend({ client: self }, opts))
+ var torrent = new Torrent(torrentId, opts)
self.torrents.push(torrent)
function clientOnTorrent (_torrent) {