From: Chocobozzz Date: Fri, 30 Jul 2021 09:48:21 +0000 (+0200) Subject: Fix peertube link button X-Git-Tag: v3.4.0-rc.1~161 X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;h=23ca2f7bc942f06ed5653b41f119b84c54f1948d;hp=171efc48e67498406feb6d7873b3482b41505515;p=github%2FChocobozzz%2FPeerTube.git Fix peertube link button --- 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' 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() }) }