diff options
Diffstat (limited to 'FrontEnd/src/app')
| -rw-r--r-- | FrontEnd/src/app/services/timeline.ts | 8 | 
1 files changed, 3 insertions, 5 deletions
diff --git a/FrontEnd/src/app/services/timeline.ts b/FrontEnd/src/app/services/timeline.ts index c49ba654..ff9662ad 100644 --- a/FrontEnd/src/app/services/timeline.ts +++ b/FrontEnd/src/app/services/timeline.ts @@ -22,13 +22,11 @@ export const timelineVisibilityTooltipTranslationMap: Record<    Private: "timeline.visibilityTooltip.private",  }; -function generateTimelineHubUrl(token: string | null): string { -  return `/api/hub/timeline${token == null ? "" : "?token=" + token}`; -} -  function createTimelineHubConnection(token: string | null): HubConnection {    return new HubConnectionBuilder() -    .withUrl(generateTimelineHubUrl(token)) +    .withUrl("/api/hub/timeline", { +      accessTokenFactory: token == null ? undefined : () => token, +    })      .withAutomaticReconnect()      .build();  }  | 
