From 02756fbd11190e75b8bed9fad5751027e2e0de49 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 29 May 2018 18:30:11 +0200 Subject: Improve torrent/video download --- client/src/app/videos/+video-watch/modal/video-download.component.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'client/src/app/videos') 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 { return } - const link = this.downloadType === 'direct' ? file.fileUrl : file.torrentUrl - window.open(link) + const link = this.downloadType === 'direct' ? file.fileDownloadUrl : file.torrentDownloadUrl + window.location.assign(link) } } -- cgit v1.2.3