Typescript for frontend code.

This commit is contained in:
John Livingston
2021-04-07 18:14:58 +02:00
parent 89a03032ff
commit 3e46552ec0
8 changed files with 302 additions and 78 deletions

View File

@ -0,0 +1,18 @@
'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
}