1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-10-19 07:35:48 +02:00
bitwarden-browser/src/abstractions/platformUtils.service.ts

19 lines
646 B
TypeScript
Raw Normal View History

2018-01-07 04:19:10 +01:00
import { DeviceType } from '../enums/deviceType';
2018-01-06 21:47:23 +01:00
2018-01-25 20:26:09 +01:00
export abstract class PlatformUtilsService {
getDevice: () => DeviceType;
getDeviceString: () => string;
isFirefox: () => boolean;
isChrome: () => boolean;
isEdge: () => boolean;
isOpera: () => boolean;
isVivaldi: () => boolean;
isSafari: () => boolean;
analyticsId: () => string;
getDomain: (uriString: string) => string;
isViewOpen: () => boolean;
2018-01-25 20:32:10 +01:00
launchUri: (uri: string, options?: any) => void;
2018-01-25 20:26:09 +01:00
saveFile: (win: Window, blobData: any, blobOptions: any, fileName: string) => void;
alertError: (title: string, message: string) => void;
2018-01-06 21:47:23 +01:00
}