diff options
author | Feross Aboukhadijeh <feross@feross.org> | 2014-09-13 15:57:51 +0400 |
---|---|---|
committer | Feross Aboukhadijeh <feross@feross.org> | 2014-09-13 15:57:51 +0400 |
commit | f33726d6fee55c0bbe8cff8b8a3e566dfee94a9e (patch) | |
tree | a9d44f0ceb666ecb6fe80f56b8203d1359d47229 /index.js | |
parent | 94a3004473f470799d6ec5cc283c12e606476f21 (diff) |
alias webtorrent.download to webtorrent.add
for parity with bittorrent-client
Diffstat (limited to 'index.js')
-rw-r--r-- | index.js | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -64,7 +64,8 @@ function WebTorrent (opts) { * @param {Object} opts optional torrent-specific options * @param {function=} ontorrent called when the torrent is ready (has metadata) */ -WebTorrent.prototype.add = function (torrentId, opts, ontorrent) { +WebTorrent.prototype.add = +WebTorrent.prototype.download = function (torrentId, opts, ontorrent) { var self = this if (typeof opts === 'function') { |