]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/app/core/plugins/hooks.service.ts
Fix bad import on FF ESR
[github/Chocobozzz/PeerTube.git] / client / src / app / core / plugins / hooks.service.ts
index 257e27e6bed7a78400492cc04662ef81c12c91ce..93dac1167cdecb8d6ee009089a8b5ea99c0652a8 100644 (file)
@@ -39,7 +39,7 @@ export class HooksService {
 
   runAction<T, U extends ClientActionHookName> (hookName: U, scope: PluginClientScope, params?: T) {
     this.pluginService.ensurePluginsAreLoaded(scope)
-        .then(() => this.pluginService.runHook(hookName, params))
+        .then(() => this.pluginService.runHook(hookName, undefined, params))
         .catch((err: any) => console.error('Fatal hook error.', { err }))
   }
 }