diff --git a/app/browser/webtorrent.js b/app/browser/webtorrent.js index 30025973d93..da71ac5ca6b 100644 --- a/app/browser/webtorrent.js +++ b/app/browser/webtorrent.js @@ -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 {} } diff --git a/js/webtorrent/entry.js b/js/webtorrent/entry.js index b900312526a..059157965cc 100644 --- a/js/webtorrent/entry.js +++ b/js/webtorrent/entry.js @@ -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() }