diff options
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 | }) |