ef05583fba
* init some shared functions (videoHasWebchat, parseConfigUUIDs) * api/room: checking that video has live enabled * fix promise handling in initChat function * removing some 'use strict' that are no more necessary in typescript
17 lines
325 B
TypeScript
17 lines
325 B
TypeScript
|
|
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
|
|
}
|