Update hello world
This commit is contained in:
@ -6,7 +6,14 @@ function register ({ registerHook, peertubeHelpers }) {
|
||||
|
||||
registerHook({
|
||||
target: 'action:video-watch.video.loaded',
|
||||
handler: () => 'video loaded'
|
||||
handler: ({ videojs, video, playlist }) => {
|
||||
|
||||
if (playlist) {
|
||||
console.log('playlist loaded')
|
||||
} else {
|
||||
console.log('video loaded')
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
registerHook({
|
||||
|
Reference in New Issue
Block a user