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

17 lines
408 B
JavaScript
Raw Normal View History

2021-04-22 09:35:02 +00:00
function register ({ registerHook }) {
registerHook({
target: 'action:admin-plugin-settings.init',
handler: ({ npmName }) => {
console.log('loaded admin plugin settings %s', npmName)
const div = document.createElement('div')
div.innerHTML = '<p>Just after the user name</p>'
document.querySelector('#user-name-wrapper').appendChild(div)
}
})
}
export {
register
}