Skip to content

ActivityPub-federated video streaming platform using P2P directly in your web browser

Fix peertube link button

Chocobozzz23ca2f7bc942
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 98434898cf..c49cee5662 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'
const Button = videojs.getComponent('Button')
class PeerTubeLinkButton extends Button {
- private shortUUID: string
constructor (player: videojs.Player, options?: PeerTubeLinkButtonOptions) {
super(player, options as any)
-
- this.shortUUID = options.shortUUID
}
createEl () {
@@ -39,7 +36,7 @@ class PeerTubeLinkButton extends Button {
}
private buildLink () {
- const url = buildVideoLink({ shortUUID: this.shortUUID })
+ const url = buildVideoLink({ shortUUID: (this.options_ as PeerTubeLinkButtonOptions).shortUUID })
return decorateVideoLink({ url, startTime: this.player().currentTime() })
}