Handle element placeholder

This commit is contained in:
Chocobozzz
2021-04-12 11:10:40 +02:00
parent 6c5d6aec36
commit 810d5517e2
3 changed files with 15 additions and 1 deletions

View File

@ -54,6 +54,15 @@ function register ({ registerHook, peertubeHelpers }) {
})
peertubeHelpers.notifier.info('you are on the watch page', 'useless', 1000)
// Insert element next to the player
{
const elem = document.createElement('div')
elem.className = 'hello-world-h4'
elem.innerHTML = '<h4>Hello everybody! This is an element next to the player</h4>'
document.getElementById('plugin-placeholder-player-next').appendChild(elem)
}
}
export {