2021-02-20 14:41:00 +00:00
|
|
|
|
|
|
|
'use strict'
|
|
|
|
|
|
|
|
function register ({ registerHook, _peertubeHelpers }) {
|
|
|
|
registerHook({
|
|
|
|
target: 'action:router.navigation-end',
|
|
|
|
handler: () => {
|
2021-03-01 17:38:39 +00:00
|
|
|
const container = document.querySelector('#peertube-plugin-livechat-container')
|
|
|
|
if (container) {
|
|
|
|
container.remove()
|
2021-02-20 15:03:44 +00:00
|
|
|
}
|
2021-02-20 14:41:00 +00:00
|
|
|
}
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
|
|
|
export {
|
|
|
|
register
|
|
|
|
}
|