Add registerClientRoute

This commit is contained in:
Chocobozzz
2021-12-10 15:15:38 +01:00
parent 79d6bfb676
commit a8b0d684ba
2 changed files with 31 additions and 2 deletions

View File

@ -71,6 +71,19 @@ function register ({ registerHook, peertubeHelpers }) {
}
})
for (const hook of [
'filter:api.video-watch.video-playlist-elements.get.result'
]) {
registerHook({
target: hook,
handler: (result) => {
console.log('Running hook %s', hook, result)
return result
}
})
}
peertubeHelpers.notifier.info('you are on the watch page', 'useless', 1000)
}