aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/assets/player/peertube-player.ts
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/assets/player/peertube-player.ts')
-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 })