mirror of
https://github.com/bitwarden/browser
synced 2025-12-16 16:23:44 +00:00
rename browserType to deviceType
This commit is contained in:
@@ -1,15 +1,15 @@
|
||||
import { BrowserType } from '../../enums/browserType.enum';
|
||||
import { DeviceType } from '../../enums/deviceType.enum';
|
||||
import { BrowserUtilsService } from '../../services/abstractions/browserUtils.service';
|
||||
|
||||
class DeviceRequest {
|
||||
type: BrowserType;
|
||||
type: DeviceType;
|
||||
name: string;
|
||||
identifier: string;
|
||||
pushToken?: string;
|
||||
|
||||
constructor(appId: string, browserUtilsService: BrowserUtilsService) {
|
||||
this.type = browserUtilsService.getBrowser();
|
||||
this.name = browserUtilsService.getBrowserString();
|
||||
this.type = browserUtilsService.getDevice();
|
||||
this.name = browserUtilsService.getDeviceString();
|
||||
this.identifier = appId;
|
||||
this.pushToken = null;
|
||||
}
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
import { BrowserType } from '../../enums/browserType.enum';
|
||||
import { DeviceType } from '../../enums/deviceType.enum';
|
||||
|
||||
class DeviceResponse {
|
||||
id: string;
|
||||
name: number;
|
||||
identifier: string;
|
||||
type: BrowserType;
|
||||
type: DeviceType;
|
||||
creationDate: string;
|
||||
|
||||
constructor(response: any) {
|
||||
|
||||
Reference in New Issue
Block a user