aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/assets
diff options
context:
space:
mode:
authorRigel Kent <sendmemail@rigelk.eu>2018-06-22 16:29:01 +0200
committerChocobozzz <me@florianbigard.com>2018-06-24 17:42:05 +0200
commit5511da6289e80f91daf5dcb3b632068c02a24ccb (patch)
tree342f4af7cce4433874aab73a18d3cc7ca205c7c9 /client/src/assets
parent92d83c6a78e86c66a55958f8e36a7f2e123efdf8 (diff)
downloadPeerTube-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')
-rw-r--r--client/src/assets/player/peertube-player.ts7
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 })