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

Fixes saving a .torrent file (follow up of #8246) #8446

Merged
merged 1 commit into from
Apr 23, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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