pstream is dead; long live pstream taciturnaxolotl.github.io/pstream-ng/
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Fix an error in fetch.ts (probably the source of these build issues)

authored by

Cooper and committed by
GitHub
7495d514 fad63160

+6 -1
+6 -1
src/backend/helpers/fetch.ts
··· 69 69 onResponse(context) { 70 70 const tokenHeader = context.response.headers.get("X-Token"); 71 71 if (tokenHeader) setApiToken(tokenHeader); 72 - ops.onResponse?.(context); 72 + 73 + if (Array.isArray(ops.onResponse)) { 74 + ops.onResponse.forEach((hook) => hook(context)); 75 + } else { 76 + ops.onResponse?.(context); 77 + } 73 78 }, 74 79 }); 75 80 }