Update hello world

This commit is contained in:
Chocobozzz
2021-04-22 11:35:02 +02:00
parent 60432bdf25
commit 6954e782ff
4 changed files with 31 additions and 3 deletions

View File

@ -0,0 +1,16 @@
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
}