mirror of
https://github.com/bitwarden/browser
synced 2025-12-17 08:43:33 +00:00
re-organize into "barrels". add utils service
This commit is contained in:
18
src/abstractions/platformUtils.service.ts
Normal file
18
src/abstractions/platformUtils.service.ts
Normal file
@@ -0,0 +1,18 @@
|
||||
import { DeviceType } from '../enums/deviceType.enum';
|
||||
|
||||
export interface PlatformUtilsService {
|
||||
getDevice(): DeviceType;
|
||||
getDeviceString(): string;
|
||||
isFirefox(): boolean;
|
||||
isChrome(): boolean;
|
||||
isEdge(): boolean;
|
||||
isOpera(): boolean;
|
||||
analyticsId(): string;
|
||||
initListSectionItemListeners(doc: Document, angular: any): void;
|
||||
getDomain(uriString: string): string;
|
||||
inSidebar(theWindow: Window): boolean;
|
||||
inTab(theWindow: Window): boolean;
|
||||
inPopout(theWindow: Window): boolean;
|
||||
inPopup(theWindow: Window): boolean;
|
||||
isViewOpen(): boolean;
|
||||
}
|
||||
Reference in New Issue
Block a user