aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/assets/player/peertube-player.ts
diff options
context:
space:
mode:
authorBO41 <lukasw41@gmail.com>2018-10-24 21:50:18 +0200
committerRigel Kent <par@rigelk.eu>2018-10-24 21:50:18 +0200
commit951ef8294e9eae8f0b42292059daf0c972dbc48f (patch)
treee2c62acffe0f4293d7f6f556cb1fc67b67478bbd /client/src/assets/player/peertube-player.ts
parentfa27f07637dd941577ab78de528cbef044b46248 (diff)
downloadPeerTube-951ef8294e9eae8f0b42292059daf0c972dbc48f.tar.gz
PeerTube-951ef8294e9eae8f0b42292059daf0c972dbc48f.tar.zst
PeerTube-951ef8294e9eae8f0b42292059daf0c972dbc48f.zip
add noImplicitThis flag (#1324)
Diffstat (limited to 'client/src/assets/player/peertube-player.ts')
-rw-r--r--client/src/assets/player/peertube-player.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/client/src/assets/player/peertube-player.ts b/client/src/assets/player/peertube-player.ts
index db63071cb..aaa1170b6 100644
--- a/client/src/assets/player/peertube-player.ts
+++ b/client/src/assets/player/peertube-player.ts
@@ -213,7 +213,7 @@ function addContextMenu (player: any, videoEmbedUrl: string) {
213 { 213 {
214 label: player.localize('Copy the video URL at the current time'), 214 label: player.localize('Copy the video URL at the current time'),
215 listener: function () { 215 listener: function () {
216 const player = this 216 const player = this as Player
217 copyToClipboard(buildVideoLink(player.currentTime())) 217 copyToClipboard(buildVideoLink(player.currentTime()))
218 } 218 }
219 }, 219 },
@@ -226,7 +226,7 @@ function addContextMenu (player: any, videoEmbedUrl: string) {
226 { 226 {
227 label: player.localize('Copy magnet URI'), 227 label: player.localize('Copy magnet URI'),
228 listener: function () { 228 listener: function () {
229 const player = this 229 const player = this as Player
230 copyToClipboard(player.peertube().getCurrentVideoFile().magnetUri) 230 copyToClipboard(player.peertube().getCurrentVideoFile().magnetUri)
231 } 231 }
232 } 232 }