Test login hook in hello world plugin

This commit is contained in:
Chocobozzz 2020-05-07 15:50:37 +02:00
parent 79b5e363bc
commit f4e6b00c7b
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
1 changed files with 14 additions and 0 deletions

View 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
}