1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-04 02:09:37 +02:00

Support plugin hooks in embed

This commit is contained in:
Chocobozzz 2020-08-20 11:46:25 +02:00 committed by Chocobozzz
parent a9f6802e7d
commit f95628636b
8 changed files with 217 additions and 114 deletions

View file

@ -80,7 +80,13 @@ export const clientActionHookObject = {
'action:router.navigation-end': true,
// Fired when the registration page is being initialized
'action:signup.register.init': true
'action:signup.register.init': true,
// ####### Embed hooks #######
// In embed scope, peertube helpers are not available
// Fired when the embed loaded the player
'action:embed.player.loaded': true
}
export type ClientActionHookName = keyof typeof clientActionHookObject