mirror of
https://github.com/bitwarden/browser
synced 2025-12-17 00:33:44 +00:00
allow custom user agent on node api service
This commit is contained in:
@@ -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> {
|
||||||
|
|||||||
Reference in New Issue
Block a user