1
0
mirror of https://github.com/bitwarden/web synced 2025-12-06 00:03:28 +00:00

Client & Version headers (#1434)

This commit is contained in:
Oscar Hinton
2022-02-08 13:22:31 +01:00
committed by GitHub
parent 64416c9406
commit e68ab0031d
2 changed files with 6 additions and 3 deletions

2
jslib

Submodule jslib updated: 6c08b40847...8130fce404

View File

@@ -1,5 +1,6 @@
import Swal, { SweetAlertIcon } from "sweetalert2";
import { ClientType } from "jslib-common/enums/clientType";
import { DeviceType } from "jslib-common/enums/deviceType";
import { ThemeType } from "jslib-common/enums/themeType";
@@ -10,8 +11,6 @@ import { PlatformUtilsService } from "jslib-common/abstractions/platformUtils.se
import { StateService } from "jslib-common/abstractions/state.service";
export class WebPlatformUtilsService implements PlatformUtilsService {
identityClientId: string = "web";
private browserCache: DeviceType = null;
private prefersColorSchemeDark = window.matchMedia("(prefers-color-scheme: dark)");
@@ -59,6 +58,10 @@ export class WebPlatformUtilsService implements PlatformUtilsService {
return device.replace("browser", "");
}
getClientType() {
return ClientType.Web;
}
isFirefox(): boolean {
return this.getDevice() === DeviceType.FirefoxBrowser;
}