Test login hook in hello world plugin
This commit is contained in:
parent
79b5e363bc
commit
f4e6b00c7b
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
|
||||
}
|
Loading…
Reference in New Issue
Block a user