mirror of
https://github.com/bitwarden/browser
synced 2025-12-16 00:03:56 +00:00
copy common ts code over from browser repo
This commit is contained in:
19
src/models/request/deviceRequest.ts
Normal file
19
src/models/request/deviceRequest.ts
Normal file
@@ -0,0 +1,19 @@
|
||||
import { BrowserType } from '../../enums/browserType.enum';
|
||||
import { UtilsService } from '../../services/abstractions/utils.service';
|
||||
|
||||
class DeviceRequest {
|
||||
type: BrowserType;
|
||||
name: string;
|
||||
identifier: string;
|
||||
pushToken?: string;
|
||||
|
||||
constructor(appId: string, utilsService: UtilsService) {
|
||||
this.type = utilsService.getBrowser();
|
||||
this.name = utilsService.getBrowserString();
|
||||
this.identifier = appId;
|
||||
this.pushToken = null;
|
||||
}
|
||||
}
|
||||
|
||||
export { DeviceRequest };
|
||||
(window as any).DeviceRequest = DeviceRequest;
|
||||
Reference in New Issue
Block a user