mirror of
https://github.com/bitwarden/browser
synced 2025-12-16 00:03:56 +00:00
isSelfHost
This commit is contained in:
@@ -25,5 +25,6 @@ export abstract class PlatformUtilsService {
|
|||||||
showDialog: (text: string, title?: string, confirmText?: string, cancelText?: string,
|
showDialog: (text: string, title?: string, confirmText?: string, cancelText?: string,
|
||||||
type?: string) => Promise<boolean>;
|
type?: string) => Promise<boolean>;
|
||||||
isDev: () => boolean;
|
isDev: () => boolean;
|
||||||
|
isSelfHost: () => boolean;
|
||||||
copyToClipboard: (text: string, options?: any) => void;
|
copyToClipboard: (text: string, options?: any) => void;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -170,6 +170,10 @@ export class ElectronPlatformUtilsService implements PlatformUtilsService {
|
|||||||
return isDev();
|
return isDev();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
isSelfHost(): boolean {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
copyToClipboard(text: string, options?: any): void {
|
copyToClipboard(text: string, options?: any): void {
|
||||||
const type = options ? options.type : null;
|
const type = options ? options.type : null;
|
||||||
clipboard.writeText(text, type);
|
clipboard.writeText(text, type);
|
||||||
|
|||||||
Reference in New Issue
Block a user