1 import { VideoJSComponentInterface, videojsUntyped } from './peertube-videojs-typings'
3 const Button: VideoJSComponentInterface = videojsUntyped.getComponent('Button')
4 class PeerTubeLinkButton extends Button {
7 return videojsUntyped.dom.createEl('a', {
8 href: window.location.href.replace('embed', 'watch'),
10 title: 'Go to the video page',
11 className: 'vjs-peertube-link',
20 Button.registerComponent('PeerTubeLinkButton', PeerTubeLinkButton)