peertube-plugin-livechat/client/common-client-plugin.js

19 lines
334 B
JavaScript
Raw Normal View History

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