19 lines
339 B
TypeScript
19 lines
339 B
TypeScript
|
|
'use strict'
|
|
|
|
function register ({ registerHook }: RegisterOptions): void {
|
|
registerHook({
|
|
target: 'action:router.navigation-end',
|
|
handler: () => {
|
|
const container = document.querySelector('#peertube-plugin-livechat-container')
|
|
if (container) {
|
|
container.remove()
|
|
}
|
|
}
|
|
})
|
|
}
|
|
|
|
export {
|
|
register
|
|
}
|