Support plugin hooks in embed
This commit is contained in:
parent
a9f6802e7d
commit
f95628636b
8 changed files with 217 additions and 114 deletions
|
@ -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
|
||||
|
|
|
@ -1 +1 @@
|
|||
export type PluginClientScope = 'common' | 'video-watch' | 'search' | 'signup' | 'login'
|
||||
export type PluginClientScope = 'common' | 'video-watch' | 'search' | 'signup' | 'login' | 'embed'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue