Update client hook names
This commit is contained in:
		| @ -1,7 +1,7 @@ | ||||
| function register ({ registerHook, peertubeHelpers }) { | ||||
|   registerHook({ | ||||
|     target: 'action:application.loaded', | ||||
|     handler: () => onApplicationLoaded(peertubeHelpers) | ||||
|     target: 'action:application.init', | ||||
|     handler: () => onApplicationInit(peertubeHelpers) | ||||
|   }) | ||||
| } | ||||
|  | ||||
| @ -9,7 +9,7 @@ export { | ||||
|   register | ||||
| } | ||||
|  | ||||
| function onApplicationLoaded (peertubeHelpers) { | ||||
| function onApplicationInit (peertubeHelpers) { | ||||
|   console.log('Hello application world') | ||||
|  | ||||
|   const baseStaticUrl = peertubeHelpers.getBaseStaticRoute() | ||||
|  | ||||
| @ -1,6 +1,6 @@ | ||||
| function register ({ registerHook, peertubeHelpers }) { | ||||
|   registerHook({ | ||||
|     target: 'action:video-watch.loaded', | ||||
|     target: 'action:video-watch.init', | ||||
|     handler: () => console.log('Hello video watch world') | ||||
|   }) | ||||
| } | ||||
|  | ||||
		Reference in New Issue
	
	Block a user