aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/assets
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/assets')
-rw-r--r--client/src/assets/player/videojs-components/peertube-link-button.ts5
1 files changed, 1 insertions, 4 deletions
diff --git a/client/src/assets/player/videojs-components/peertube-link-button.ts b/client/src/assets/player/videojs-components/peertube-link-button.ts
index 98434898c..c49cee566 100644
--- a/client/src/assets/player/videojs-components/peertube-link-button.ts
+++ b/client/src/assets/player/videojs-components/peertube-link-button.ts
@@ -4,12 +4,9 @@ import { PeerTubeLinkButtonOptions } from '../peertube-videojs-typings'
4 4
5const Button = videojs.getComponent('Button') 5const Button = videojs.getComponent('Button')
6class PeerTubeLinkButton extends Button { 6class PeerTubeLinkButton extends Button {
7 private shortUUID: string
8 7
9 constructor (player: videojs.Player, options?: PeerTubeLinkButtonOptions) { 8 constructor (player: videojs.Player, options?: PeerTubeLinkButtonOptions) {
10 super(player, options as any) 9 super(player, options as any)
11
12 this.shortUUID = options.shortUUID
13 } 10 }
14 11
15 createEl () { 12 createEl () {
@@ -39,7 +36,7 @@ class PeerTubeLinkButton extends Button {
39 } 36 }
40 37
41 private buildLink () { 38 private buildLink () {
42 const url = buildVideoLink({ shortUUID: this.shortUUID }) 39 const url = buildVideoLink({ shortUUID: (this.options_ as PeerTubeLinkButtonOptions).shortUUID })
43 40
44 return decorateVideoLink({ url, startTime: this.player().currentTime() }) 41 return decorateVideoLink({ url, startTime: this.player().currentTime() })
45 } 42 }