peertube-theme-nctv-dark/peertube-plugin-hello-world/client/login-client-plugin.js

28 lines
550 B
JavaScript
Raw Normal View History

2020-05-07 13:50:37 +00:00
function register ({ registerHook, peertubeHelpers }) {
registerHook({
target: 'action:login.init',
handler: () => {
console.log('Login init')
document.querySelector('.looking-for-account > div').innerHTML = 'Hello'
}
})
2022-01-20 08:36:52 +00:00
registerHook({
target: 'filter:login.instance-about-plugin-panels.create.result',
handler: result => {
return result.concat([
{
id: 'riri',
title: 'Riri',
html: 'Riri <strong>Duck</strong>'
}
])
}
})
2020-05-07 13:50:37 +00:00
}
export {
register
}