mirror of
https://github.com/bitwarden/browser
synced 2025-12-15 07:43:35 +00:00
Client and version headers (#2320)
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import { BrowserApi } from "../browser/browserApi";
|
||||
import { SafariApp } from "../browser/safariApp";
|
||||
|
||||
import { ClientType } from "jslib-common/enums/clientType";
|
||||
import { DeviceType } from "jslib-common/enums/deviceType";
|
||||
import { ThemeType } from "jslib-common/enums/themeType";
|
||||
|
||||
@@ -12,8 +13,6 @@ import { StateService } from "../services/abstractions/state.service";
|
||||
const DialogPromiseExpiration = 600000; // 10 minutes
|
||||
|
||||
export default class BrowserPlatformUtilsService implements PlatformUtilsService {
|
||||
identityClientId: string = "browser";
|
||||
|
||||
private showDialogResolves = new Map<number, { resolve: (value: boolean) => void; date: Date }>();
|
||||
private passwordDialogResolves = new Map<
|
||||
number,
|
||||
@@ -63,6 +62,10 @@ export default class BrowserPlatformUtilsService implements PlatformUtilsService
|
||||
return device.replace("extension", "");
|
||||
}
|
||||
|
||||
getClientType(): ClientType {
|
||||
return ClientType.Browser;
|
||||
}
|
||||
|
||||
isFirefox(): boolean {
|
||||
return this.getDevice() === DeviceType.FirefoxExtension;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user