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

View file

@ -1 +1 @@
export type PluginClientScope = 'common' | 'video-watch' | 'search' | 'signup' | 'login'
export type PluginClientScope = 'common' | 'video-watch' | 'search' | 'signup' | 'login' | 'embed'