aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/assets/player/settings-menu-item.ts
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/assets/player/settings-menu-item.ts')
-rw-r--r--client/src/assets/player/settings-menu-item.ts8
1 files changed, 6 insertions, 2 deletions
diff --git a/client/src/assets/player/settings-menu-item.ts b/client/src/assets/player/settings-menu-item.ts
index 2d752b62e..698f4627a 100644
--- a/client/src/assets/player/settings-menu-item.ts
+++ b/client/src/assets/player/settings-menu-item.ts
@@ -1,6 +1,10 @@
1// Author: Yanko Shterev 1// Author: Yanko Shterev
2// Thanks https://github.com/yshterev/videojs-settings-menu 2// Thanks https://github.com/yshterev/videojs-settings-menu
3 3
4// FIXME: something weird with our path definition in tsconfig and typings
5// @ts-ignore
6import * as videojs from 'video.js'
7
4import { toTitleCase } from './utils' 8import { toTitleCase } from './utils'
5import { VideoJSComponentInterface, videojsUntyped } from './peertube-videojs-typings' 9import { VideoJSComponentInterface, videojsUntyped } from './peertube-videojs-typings'
6 10
@@ -9,7 +13,7 @@ const component: VideoJSComponentInterface = videojsUntyped.getComponent('Compon
9 13
10class SettingsMenuItem extends MenuItem { 14class SettingsMenuItem extends MenuItem {
11 15
12 constructor (player: any, options: any, entry: string, menuButton: VideoJSComponentInterface) { 16 constructor (player: videojs.Player, options: any, entry: string, menuButton: VideoJSComponentInterface) {
13 super(player, options) 17 super(player, options)
14 18
15 this.settingsButton = menuButton 19 this.settingsButton = menuButton
@@ -229,7 +233,7 @@ class SettingsMenuItem extends MenuItem {
229 } 233 }
230 234
231 update (event?: any) { 235 update (event?: any) {
232 let target = null 236 let target: HTMLElement = null
233 let subMenu = this.subMenu.name() 237 let subMenu = this.subMenu.name()
234 238
235 if (event && event.type === 'tap') { 239 if (event && event.type === 'tap') {