From e16cb9b801bec1cf1744d8b48f39421ad37e1644 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Mon, 7 Oct 2019 10:11:32 -0400 Subject: [PATCH] allow custom user agent on node api service --- src/services/nodeApi.service.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/services/nodeApi.service.ts b/src/services/nodeApi.service.ts index 07559c89c2..b60b2128f4 100644 --- a/src/services/nodeApi.service.ts +++ b/src/services/nodeApi.service.ts @@ -15,8 +15,8 @@ import { TokenService } from '../abstractions/token.service'; export class NodeApiService extends ApiService { constructor(tokenService: TokenService, platformUtilsService: PlatformUtilsService, - logoutCallback: (expired: boolean) => Promise) { - super(tokenService, platformUtilsService, logoutCallback); + logoutCallback: (expired: boolean) => Promise, customUserAgent: string = null) { + super(tokenService, platformUtilsService, logoutCallback, customUserAgent); } nativeFetch(request: Request): Promise {