mirror of
https://github.com/bitwarden/browser
synced 2025-12-12 06:13:38 +00:00
23 lines
820 B
TypeScript
23 lines
820 B
TypeScript
import { BrowserType } from '../../enums/browserType.enum';
|
|
|
|
export interface UtilsService {
|
|
getBrowser(): BrowserType;
|
|
getBrowserString(): string;
|
|
isFirefox(): boolean;
|
|
isChrome(): boolean;
|
|
isEdge(): boolean;
|
|
isOpera(): boolean;
|
|
analyticsId(): string;
|
|
initListSectionItemListeners(doc: Document, angular: any): void;
|
|
copyToClipboard(text: string, doc?: Document): void;
|
|
getDomain(uriString: string): string;
|
|
getHostname(uriString: string): string;
|
|
inSidebar(theWindow: Window): boolean;
|
|
inTab(theWindow: Window): boolean;
|
|
inPopout(theWindow: Window): boolean;
|
|
inPopup(theWindow: Window): boolean;
|
|
saveObjToStorage(key: string, obj: any): Promise<any>;
|
|
removeFromStorage(key: string): Promise<any>;
|
|
getObjFromStorage<T>(key: string): Promise<T>;
|
|
}
|