diff --git a/peertube-plugin-hello-world/client/common-client-plugin.js b/peertube-plugin-hello-world/client/common-client-plugin.js index f3dd5f2..5ceedad 100644 --- a/peertube-plugin-hello-world/client/common-client-plugin.js +++ b/peertube-plugin-hello-world/client/common-client-plugin.js @@ -1,7 +1,7 @@ function register ({ registerHook, peertubeHelpers }) { registerHook({ - target: 'action:application.loaded', - handler: () => onApplicationLoaded(peertubeHelpers) + target: 'action:application.init', + handler: () => onApplicationInit(peertubeHelpers) }) } @@ -9,7 +9,7 @@ export { register } -function onApplicationLoaded (peertubeHelpers) { +function onApplicationInit (peertubeHelpers) { console.log('Hello application world') const baseStaticUrl = peertubeHelpers.getBaseStaticRoute() diff --git a/peertube-plugin-hello-world/client/video-watch-client-plugin.js b/peertube-plugin-hello-world/client/video-watch-client-plugin.js index 52f7ac6..fef7ebb 100644 --- a/peertube-plugin-hello-world/client/video-watch-client-plugin.js +++ b/peertube-plugin-hello-world/client/video-watch-client-plugin.js @@ -1,6 +1,6 @@ function register ({ registerHook, peertubeHelpers }) { registerHook({ - target: 'action:video-watch.loaded', + target: 'action:video-watch.init', handler: () => console.log('Hello video watch world') }) } diff --git a/peertube-plugin-hello-world/package.json b/peertube-plugin-hello-world/package.json index 83e25ce..cb89c09 100644 --- a/peertube-plugin-hello-world/package.json +++ b/peertube-plugin-hello-world/package.json @@ -1,6 +1,6 @@ { "name": "peertube-plugin-hello-world", - "version": "0.0.8", + "version": "0.0.9", "description": "Hello world PeerTube plugin example", "engine": { "peertube": ">=1.3.0" diff --git a/peertube-theme-background-red/client/video-watch-client-plugin.js b/peertube-theme-background-red/client/video-watch-client-plugin.js index f3d4d50..5dde758 100644 --- a/peertube-theme-background-red/client/video-watch-client-plugin.js +++ b/peertube-theme-background-red/client/video-watch-client-plugin.js @@ -1,6 +1,6 @@ function register ({ registerHook, peertubeHelpers }) { registerHook({ - target: 'action:video-watch.loaded', + target: 'action:video-watch.init', handler: () => console.log('Background red watch world') }) } diff --git a/peertube-theme-background-red/package.json b/peertube-theme-background-red/package.json index 72903be..9276211 100644 --- a/peertube-theme-background-red/package.json +++ b/peertube-theme-background-red/package.json @@ -1,6 +1,6 @@ { "name": "peertube-theme-background-red", - "version": "0.0.2", + "version": "0.0.3", "description": "Example PeerTube theme", "engine": { "peertube": ">=1.3.1"