peertube-plugin-livechat/client/common-client-plugin.ts
2021-04-07 18:14:58 +02:00

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
}