1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-11-24 12:06:15 +01:00

isSelfHost

This commit is contained in:
Kyle Spearrin 2018-06-30 13:51:09 -04:00
parent f5287e29a2
commit 20622db73c
2 changed files with 5 additions and 0 deletions

View File

@ -25,5 +25,6 @@ export abstract class PlatformUtilsService {
showDialog: (text: string, title?: string, confirmText?: string, cancelText?: string,
type?: string) => Promise<boolean>;
isDev: () => boolean;
isSelfHost: () => boolean;
copyToClipboard: (text: string, options?: any) => void;
}

View File

@ -170,6 +170,10 @@ export class ElectronPlatformUtilsService implements PlatformUtilsService {
return isDev();
}
isSelfHost(): boolean {
return false;
}
copyToClipboard(text: string, options?: any): void {
const type = options ? options.type : null;
clipboard.writeText(text, type);