mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-04 02:09:37 +02:00
Add client hooks
This commit is contained in:
parent
587568e1cc
commit
93cae47925
31 changed files with 339 additions and 124 deletions
|
@ -29,7 +29,7 @@ async function internalRunHook <T> (handler: Function, hookType: HookType, resul
|
|||
}
|
||||
|
||||
if (hookType === HookType.ACTION) {
|
||||
if (isCatchable(p)) p.catch(err => onError(err))
|
||||
if (isCatchable(p)) p.catch((err: any) => onError(err))
|
||||
|
||||
return undefined
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue