diff --git a/peertube-plugin-hello-world/client/login-client-plugin.js b/peertube-plugin-hello-world/client/login-client-plugin.js new file mode 100644 index 0000000..42abe24 --- /dev/null +++ b/peertube-plugin-hello-world/client/login-client-plugin.js @@ -0,0 +1,14 @@ +function register ({ registerHook, peertubeHelpers }) { + + registerHook({ + target: 'action:login.init', + handler: () => { + console.log('Login init') + document.querySelector('.looking-for-account > div').innerHTML = 'Hello' + } + }) +} + +export { + register +}