Add ability for plugins to alter video jsonld
This commit is contained in:
parent
f386bab02e
commit
230af3e7db
1 changed files with 0 additions and 9 deletions
|
@ -48,15 +48,6 @@ export class HooksService {
|
||||||
return this.pluginService.runHook(hookResultName, result, params)
|
return this.pluginService.runHook(hookResultName, result, params)
|
||||||
}
|
}
|
||||||
|
|
||||||
async wrapFunResult <P, R, H extends ClientFilterHookName>
|
|
||||||
(fun: RawFunction<P, R>, params: P, scope: PluginClientScope, hookResultName: H) {
|
|
||||||
await this.pluginService.ensurePluginsAreLoaded(scope)
|
|
||||||
|
|
||||||
const result = fun(params)
|
|
||||||
|
|
||||||
return this.pluginService.runHook(hookResultName, result, params)
|
|
||||||
}
|
|
||||||
|
|
||||||
runAction<T, U extends ClientActionHookName> (hookName: U, scope: PluginClientScope, params?: T) {
|
runAction<T, U extends ClientActionHookName> (hookName: U, scope: PluginClientScope, params?: T) {
|
||||||
// Use setTimeout to give priority to Angular change detector
|
// Use setTimeout to give priority to Angular change detector
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
|
|
Loading…
Reference in a new issue