aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--client/src/app/videos/+video-watch/comment/linkifier.service.ts2
-rw-r--r--client/src/app/videos/+video-watch/video-watch.component.ts2
-rw-r--r--client/src/assets/player/peertube-player.ts4
-rw-r--r--client/src/assets/player/settings-menu-button.ts2
-rw-r--r--client/tsconfig.json1
5 files changed, 6 insertions, 5 deletions
diff --git a/client/src/app/videos/+video-watch/comment/linkifier.service.ts b/client/src/app/videos/+video-watch/comment/linkifier.service.ts
index 4f4ec1e5d..2529c9eaf 100644
--- a/client/src/app/videos/+video-watch/comment/linkifier.service.ts
+++ b/client/src/app/videos/+video-watch/comment/linkifier.service.ts
@@ -41,7 +41,7 @@ export class LinkifierService {
41 const TT_UNDERSCORE = TT.UNDERSCORE 41 const TT_UNDERSCORE = TT.UNDERSCORE
42 const TT_DOT = TT.DOT 42 const TT_DOT = TT.DOT
43 43
44 function MENTION (value: any) { 44 function MENTION (this: any, value: any) {
45 this.v = value 45 this.v = value
46 } 46 }
47 47
diff --git a/client/src/app/videos/+video-watch/video-watch.component.ts b/client/src/app/videos/+video-watch/video-watch.component.ts
index 65b974037..dda870905 100644
--- a/client/src/app/videos/+video-watch/video-watch.component.ts
+++ b/client/src/app/videos/+video-watch/video-watch.component.ts
@@ -435,7 +435,7 @@ export class VideoWatchComponent implements OnInit, OnDestroy {
435 435
436 const self = this 436 const self = this
437 this.zone.runOutsideAngular(async () => { 437 this.zone.runOutsideAngular(async () => {
438 videojs(this.playerElement, videojsOptions, function () { 438 videojs(this.playerElement, videojsOptions, function (this: videojs.Player) {
439 self.player = this 439 self.player = this
440 this.on('customError', ({ err }: { err: any }) => self.handleError(err)) 440 this.on('customError', ({ err }: { err: any }) => self.handleError(err))
441 441
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 {
diff --git a/client/tsconfig.json b/client/tsconfig.json
index ef80445db..beca79e01 100644
--- a/client/tsconfig.json
+++ b/client/tsconfig.json
@@ -8,6 +8,7 @@
8 "emitDecoratorMetadata": true, 8 "emitDecoratorMetadata": true,
9 "experimentalDecorators": true, 9 "experimentalDecorators": true,
10 "noImplicitAny": true, 10 "noImplicitAny": true,
11 "noImplicitThis": true,
11 "suppressImplicitAnyIndexErrors":true, 12 "suppressImplicitAnyIndexErrors":true,
12 "alwaysStrict": true, 13 "alwaysStrict": true,
13 "target": "es5", 14 "target": "es5",