Update client hook names

This commit is contained in:
Chocobozzz 2019-07-22 14:08:20 +02:00
parent 8d4ceaed9d
commit 5336129c36
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
5 changed files with 7 additions and 7 deletions

View File

@ -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()

View File

@ -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')
})
}

View File

@ -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"

View File

@ -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')
})
}

View File

@ -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"