Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

Commit

Permalink
Fixes saving a .torrent file (follow up of #8246)
Browse files Browse the repository at this point in the history
Resolves #8146

Auditors: @bsclifton @bbondy

Test Plan:
- Visit https://webtorrent.io/free-torrents/
- Click "Big Buck Bunny (torrent file)"
- Click "Save Torrent File..."
- File is saved
  • Loading branch information
NejcZdovc authored and bsclifton committed Apr 23, 2017
1 parent 4123103 commit ba1bb7f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/browser/webtorrent.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ function setupFiltering () {
}

const parsedUrl = url.parse(details.url)
const directDownload = parsedUrl && parsedUrl.query && parsedUrl.query.includes('download=true')
const directDownload = parsedUrl && parsedUrl.query && parsedUrl.query.includes('download=ok')
if (directDownload) {
return {}
}
Expand Down
3 changes: 1 addition & 2 deletions js/webtorrent/entry.js
Original file line number Diff line number Diff line change
Expand Up @@ -176,8 +176,7 @@ function saveTorrentFile () {
let a = document.createElement('a')
a.target = '_blank'
a.download = true
a.href = `${store.torrentId}?download=true`
a.href = store.torrentId
a.href = `${store.torrentId}?download=ok`
a.click()
}

Expand Down

0 comments on commit ba1bb7f

Please sign in to comment.