Add route hook action

This commit is contained in:
Chocobozzz
2019-07-26 09:42:52 +02:00
parent 1fd372ecbc
commit 73a0294104
3 changed files with 16 additions and 1 deletions

View File

@ -46,6 +46,13 @@ function register ({ registerHook, peertubeHelpers }) {
handler: result => addSymbolToVideoNameResult(result, ':D')
})
// Router hooks
registerHook({
target: 'action:router.navigation-end',
handler: params => console.log('New URL! %s.', params.path)
})
// Fake hook
registerHook({