Verified Commit 5336129c authored by Chocobozzz's avatar Chocobozzz
Browse files

Update client hook names

parent 8d4ceaed
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()
......
function register ({ registerHook, peertubeHelpers }) {
registerHook({
target: 'action:video-watch.loaded',
target: 'action:video-watch.init',
handler: () => console.log('Hello video watch world')
})
}
......
{
"name": "peertube-plugin-hello-world",
"version": "0.0.8",
"version": "0.0.9",
"description": "Hello world PeerTube plugin example",
"engine": {
"peertube": ">=1.3.0"
......
function register ({ registerHook, peertubeHelpers }) {
registerHook({
target: 'action:video-watch.loaded',
target: 'action:video-watch.init',
handler: () => console.log('Background red watch world')
})
}
......
{
"name": "peertube-theme-background-red",
"version": "0.0.2",
"version": "0.0.3",
"description": "Example PeerTube theme",
"engine": {
"peertube": ">=1.3.1"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment