Update client hook names
This commit is contained in:
parent
8d4ceaed9d
commit
5336129c36
@ -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()
|
||||
|
@ -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')
|
||||
})
|
||||
}
|
||||
|
@ -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"
|
||||
|
@ -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')
|
||||
})
|
||||
}
|
||||
|
@ -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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user