aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-05-29 18:30:11 +0200
committerChocobozzz <me@florianbigard.com>2018-05-29 18:30:11 +0200
commit02756fbd11190e75b8bed9fad5751027e2e0de49 (patch)
treef90d6182fbb6226cb319bd0cb759ec0ec3f05512 /client/src
parenta20776fcbbe488475238228716cad370056ad5bd (diff)
downloadPeerTube-02756fbd11190e75b8bed9fad5751027e2e0de49.tar.gz
PeerTube-02756fbd11190e75b8bed9fad5751027e2e0de49.tar.zst
PeerTube-02756fbd11190e75b8bed9fad5751027e2e0de49.zip
Improve torrent/video download
Diffstat (limited to 'client/src')
-rw-r--r--client/src/app/videos/+video-watch/modal/video-download.component.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/client/src/app/videos/+video-watch/modal/video-download.component.ts b/client/src/app/videos/+video-watch/modal/video-download.component.ts
index b06a7eef1..12f31b011 100644
--- a/client/src/app/videos/+video-watch/modal/video-download.component.ts
+++ b/client/src/app/videos/+video-watch/modal/video-download.component.ts
@@ -41,7 +41,7 @@ export class VideoDownloadComponent implements OnInit {
41 return 41 return
42 } 42 }
43 43
44 const link = this.downloadType === 'direct' ? file.fileUrl : file.torrentUrl 44 const link = this.downloadType === 'direct' ? file.fileDownloadUrl : file.torrentDownloadUrl
45 window.open(link) 45 window.location.assign(link)
46 } 46 }
47} 47}