Client and version headers (#2320)
This commit is contained in:
parent
7d43835ea2
commit
0a44bf4dd9
2
jslib
2
jslib
|
@ -1 +1 @@
|
|||
Subproject commit 6b8508579f89b4c54afa6aab2b7155aac70fb8a9
|
||||
Subproject commit 8130fce40459d6597239eb283e1c8dfc28edb16f
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue