Skip to content

Commit

Permalink
support multi-file torrents
Browse files Browse the repository at this point in the history
  • Loading branch information
feross committed Sep 9, 2014
1 parent 6f01a81 commit b02e324
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions client/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ $('form').on('submit', function (e) {

function onTorrent (torrent) {
var log = document.querySelector('.log')

log.innerHTML += 'Torrent info hash: ' + torrent.infoHash + '<br>'
log.innerHTML += 'Downloading from ' + torrent.swarm.wires.length + ' peers<br>'

Expand All @@ -29,7 +28,7 @@ function onTorrent (torrent) {
a.download = file.name
a.href = URL.createObjectURL(new Blob([ buf ]))
a.textContent = 'download ' + file.name
log.appendChild(a)
log.innerHTML += a.outerHTML + '<br>'
}))
})
}
2 changes: 1 addition & 1 deletion server/views/index.jade
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ extends layout

block body
h1 instant.io
h3 Drag-and-drop a file to begin seeding
h3 Drag-and-drop a file (or files) to begin seeding
form
label(for='infoHash') Download a file by info hash
input(name='infoHash')
Expand Down

0 comments on commit b02e324

Please sign in to comment.