aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/assets/player/videojs-components
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-10-22 16:18:00 +0200
committerChocobozzz <me@florianbigard.com>2021-10-22 16:18:00 +0200
commit02b2e482e0bdf16432b1ee34e95a71bbad39a4ff (patch)
tree48f45d24881ccead3fda36bc2fc9f57c054f5c03 /client/src/assets/player/videojs-components
parent60dd77c6922fced1945635a16ac7ecf1df43a839 (diff)
downloadPeerTube-02b2e482e0bdf16432b1ee34e95a71bbad39a4ff.tar.gz
PeerTube-02b2e482e0bdf16432b1ee34e95a71bbad39a4ff.tar.zst
PeerTube-02b2e482e0bdf16432b1ee34e95a71bbad39a4ff.zip
Fix some old typing issues
Diffstat (limited to 'client/src/assets/player/videojs-components')
-rw-r--r--client/src/assets/player/videojs-components/peertube-load-progress-bar.ts1
-rw-r--r--client/src/assets/player/videojs-components/settings-menu-item.ts2
2 files changed, 1 insertions, 2 deletions
diff --git a/client/src/assets/player/videojs-components/peertube-load-progress-bar.ts b/client/src/assets/player/videojs-components/peertube-load-progress-bar.ts
index 7869b56ce..623e70eb2 100644
--- a/client/src/assets/player/videojs-components/peertube-load-progress-bar.ts
+++ b/client/src/assets/player/videojs-components/peertube-load-progress-bar.ts
@@ -25,7 +25,6 @@ class PeerTubeLoadProgressBar extends Component {
25 const torrent = this.player().webtorrent().getTorrent() 25 const torrent = this.player().webtorrent().getTorrent()
26 if (!torrent) return 26 if (!torrent) return
27 27
28 // FIXME: typings
29 (this.el() as HTMLElement).style.width = (torrent.progress * 100) + '%' 28 (this.el() as HTMLElement).style.width = (torrent.progress * 100) + '%'
30 } 29 }
31 30
diff --git a/client/src/assets/player/videojs-components/settings-menu-item.ts b/client/src/assets/player/videojs-components/settings-menu-item.ts
index d27163373..67e71b4e2 100644
--- a/client/src/assets/player/videojs-components/settings-menu-item.ts
+++ b/client/src/assets/player/videojs-components/settings-menu-item.ts
@@ -56,7 +56,7 @@ class SettingsMenuItem extends MenuItem {
56 56
57 const newOptions = Object.assign({}, options, { entry: options.menuButton, menuButton: this }) 57 const newOptions = Object.assign({}, options, { entry: options.menuButton, menuButton: this })
58 58
59 this.subMenu = new SubMenuComponent(this.player(), newOptions) as any // FIXME: typings 59 this.subMenu = new SubMenuComponent(this.player(), newOptions) as SettingsButton
60 const subMenuClass = this.subMenu.buildCSSClass().split(' ')[0] 60 const subMenuClass = this.subMenu.buildCSSClass().split(' ')[0]
61 this.settingsSubMenuEl_.className += ' ' + subMenuClass 61 this.settingsSubMenuEl_.className += ' ' + subMenuClass
62 62