]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commitdiff
Client: fix PeerTube link in embed videos
authorChocobozzz <florian.bigard@gmail.com>
Tue, 29 Nov 2016 20:55:03 +0000 (21:55 +0100)
committerChocobozzz <florian.bigard@gmail.com>
Tue, 29 Nov 2016 20:55:03 +0000 (21:55 +0100)
client/src/standalone/videos/embed.html

index c154e9570f74656049394ef55c04c1d0a86934e5..0a1c3eadfc0637860be59084c7f2cb7b42a15213 100644 (file)
           link.innerHTML = 'PeerTube'
           link.title = 'Go to the video page'
           link.className = 'vjs-peertube-link'
+          link.target = '_blank'
 
           return link
+        },
+
+        handleClick: function () {
+          player.pause()
         }
       })
       videojs.registerComponent('PeerTubeLinkButton', peertubeLinkButton)