Test login hook in hello world plugin
This commit is contained in:
		
							
								
								
									
										14
									
								
								peertube-plugin-hello-world/client/login-client-plugin.js
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										14
									
								
								peertube-plugin-hello-world/client/login-client-plugin.js
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,14 @@ | ||||
| function register ({ registerHook, peertubeHelpers }) { | ||||
|  | ||||
|   registerHook({ | ||||
|     target: 'action:login.init', | ||||
|     handler: () => { | ||||
|       console.log('Login init') | ||||
|       document.querySelector('.looking-for-account > div').innerHTML = 'Hello' | ||||
|     } | ||||
|   }) | ||||
| } | ||||
|  | ||||
| export { | ||||
|   register | ||||
| } | ||||
		Reference in New Issue
	
	Block a user