peertube-theme-nctv-dark/peertube-plugin-hello-world/client/embed-client-plugin.js

13 lines
236 B
JavaScript
Raw Normal View History

2020-08-21 12:45:18 +00:00
function register ({ registerHook, peertubeHelpers }) {
registerHook({
target: 'action:embed.player.loaded',
handler: () => alert('video loaded')
})
console.log(peertubeHelpers.translate('toto'))
}
export {
register
}