1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-09-18 02:41:15 +02:00

allow custom user agent on node api service

This commit is contained in:
Kyle Spearrin 2019-10-07 10:11:32 -04:00
parent 9f2d9c0a91
commit e16cb9b801

View File

@ -15,8 +15,8 @@ import { TokenService } from '../abstractions/token.service';
export class NodeApiService extends ApiService { export class NodeApiService extends ApiService {
constructor(tokenService: TokenService, platformUtilsService: PlatformUtilsService, constructor(tokenService: TokenService, platformUtilsService: PlatformUtilsService,
logoutCallback: (expired: boolean) => Promise<void>) { logoutCallback: (expired: boolean) => Promise<void>, customUserAgent: string = null) {
super(tokenService, platformUtilsService, logoutCallback); super(tokenService, platformUtilsService, logoutCallback, customUserAgent);
} }
nativeFetch(request: Request): Promise<Response> { nativeFetch(request: Request): Promise<Response> {