mirror of
https://github.com/bitwarden/browser.git
synced 2024-10-19 07:35:48 +02:00
25 lines
926 B
TypeScript
25 lines
926 B
TypeScript
import { DeviceType } from '../enums/deviceType';
|
|
|
|
export abstract class PlatformUtilsService {
|
|
getDevice: () => DeviceType;
|
|
getDeviceString: () => string;
|
|
isFirefox: () => boolean;
|
|
isChrome: () => boolean;
|
|
isEdge: () => boolean;
|
|
isOpera: () => boolean;
|
|
isVivaldi: () => boolean;
|
|
isSafari: () => boolean;
|
|
isMacAppStore: () => boolean;
|
|
analyticsId: () => string;
|
|
getDomain: (uriString: string) => string;
|
|
isViewOpen: () => boolean;
|
|
launchUri: (uri: string, options?: any) => void;
|
|
saveFile: (win: Window, blobData: any, blobOptions: any, fileName: string) => void;
|
|
getApplicationVersion: () => string;
|
|
supportsU2f: (win: Window) => boolean;
|
|
showDialog: (text: string, title?: string, confirmText?: string, cancelText?: string,
|
|
type?: string) => Promise<boolean>;
|
|
isDev: () => boolean;
|
|
copyToClipboard: (text: string, options?: any) => void;
|
|
}
|