diff options
author | Rigel Kent <sendmemail@rigelk.eu> | 2018-06-22 16:29:01 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-06-24 17:42:05 +0200 |
commit | 5511da6289e80f91daf5dcb3b632068c02a24ccb (patch) | |
tree | 342f4af7cce4433874aab73a18d3cc7ca205c7c9 /client/src/assets/player | |
parent | 92d83c6a78e86c66a55958f8e36a7f2e123efdf8 (diff) | |
download | PeerTube-5511da6289e80f91daf5dcb3b632068c02a24ccb.tar.gz PeerTube-5511da6289e80f91daf5dcb3b632068c02a24ccb.tar.zst PeerTube-5511da6289e80f91daf5dcb3b632068c02a24ccb.zip |
Fix #639 providing magnet URI in player and download modal
Diffstat (limited to 'client/src/assets/player')
-rw-r--r-- | client/src/assets/player/peertube-player.ts | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/client/src/assets/player/peertube-player.ts b/client/src/assets/player/peertube-player.ts index 6b8bba211..7c9a43ed9 100644 --- a/client/src/assets/player/peertube-player.ts +++ b/client/src/assets/player/peertube-player.ts | |||
@@ -143,6 +143,13 @@ function addContextMenu (player: any, videoEmbedUrl: string) { | |||
143 | listener: () => { | 143 | listener: () => { |
144 | copyToClipboard(buildVideoEmbed(videoEmbedUrl)) | 144 | copyToClipboard(buildVideoEmbed(videoEmbedUrl)) |
145 | } | 145 | } |
146 | }, | ||
147 | { | ||
148 | label: player.localize('Copy magnet URI'), | ||
149 | listener: function () { | ||
150 | const player = this | ||
151 | copyToClipboard(player.peertube().getCurrentVideoFile().magnetUri) | ||
152 | } | ||
146 | } | 153 | } |
147 | ] | 154 | ] |
148 | }) | 155 | }) |