diff options
author | kontrollanten <6680299+kontrollanten@users.noreply.github.com> | 2020-12-07 14:18:37 +0100 |
---|---|---|
committer | Chocobozzz <chocobozzz@cpy.re> | 2020-12-07 16:52:35 +0100 |
commit | 8426a71144108b645f26f1ad663e066444b38ceb (patch) | |
tree | df283ead0efa575a3b7fb45b3a53a0e179c37e87 /client/src | |
parent | d94ca8d0b77732988b5b4c6e309c64ca35201823 (diff) | |
download | PeerTube-8426a71144108b645f26f1ad663e066444b38ceb.tar.gz PeerTube-8426a71144108b645f26f1ad663e066444b38ceb.tar.zst PeerTube-8426a71144108b645f26f1ad663e066444b38ceb.zip |
Revert "refactor(wt-plugin): tighten TS definitions"
This reverts commit cdca521e1560bf8b215f8eb17576985e7a77cff6.
Diffstat (limited to 'client/src')
-rw-r--r-- | client/src/assets/player/webtorrent/webtorrent-plugin.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/client/src/assets/player/webtorrent/webtorrent-plugin.ts b/client/src/assets/player/webtorrent/webtorrent-plugin.ts index 959a55797..4eaaf51ec 100644 --- a/client/src/assets/player/webtorrent/webtorrent-plugin.ts +++ b/client/src/assets/player/webtorrent/webtorrent-plugin.ts | |||
@@ -68,7 +68,7 @@ class WebTorrentPlugin extends Plugin { | |||
68 | 68 | ||
69 | private downloadSpeeds: number[] = [] | 69 | private downloadSpeeds: number[] = [] |
70 | 70 | ||
71 | constructor (player: videojs.Player, options: WebtorrentPluginOptions) { | 71 | constructor (player: videojs.Player, options?: WebtorrentPluginOptions) { |
72 | super(player) | 72 | super(player) |
73 | 73 | ||
74 | this.startTime = timeToInt(options.startTime) | 74 | this.startTime = timeToInt(options.startTime) |
@@ -129,7 +129,7 @@ class WebTorrentPlugin extends Plugin { | |||
129 | : this.pickAverageVideoFile() | 129 | : this.pickAverageVideoFile() |
130 | } | 130 | } |
131 | 131 | ||
132 | private updateVideoFile ( | 132 | updateVideoFile ( |
133 | videoFile: VideoFile, | 133 | videoFile: VideoFile, |
134 | options: { | 134 | options: { |
135 | forcePlay?: boolean, | 135 | forcePlay?: boolean, |