Update hello world

This commit is contained in:
Chocobozzz
2021-04-09 15:19:32 +02:00
parent 0baf018841
commit 6c5d6aec36
4 changed files with 49 additions and 3 deletions

View File

@ -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({