aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/assets
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/assets')
-rw-r--r--client/src/assets/player/peertube-player.ts4
-rw-r--r--client/src/assets/player/settings-menu-button.ts2
2 files changed, 3 insertions, 3 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 }
diff --git a/client/src/assets/player/settings-menu-button.ts b/client/src/assets/player/settings-menu-button.ts
index aa7281727..a7aefdcc3 100644
--- a/client/src/assets/player/settings-menu-button.ts
+++ b/client/src/assets/player/settings-menu-button.ts
@@ -182,7 +182,7 @@ class SettingsButton extends Button {
182 } 182 }
183 183
184 addMenuItem (entry: any, options: any) { 184 addMenuItem (entry: any, options: any) {
185 const openSubMenu = function () { 185 const openSubMenu = function (this: any) {
186 if (videojsUntyped.dom.hasClass(this.el_, 'open')) { 186 if (videojsUntyped.dom.hasClass(this.el_, 'open')) {
187 videojsUntyped.dom.removeClass(this.el_, 'open') 187 videojsUntyped.dom.removeClass(this.el_, 'open')
188 } else { 188 } else {