1
0
mirror of https://github.com/bitwarden/web synced 2025-12-11 13:53:17 +00:00

self host builds

This commit is contained in:
Kyle Spearrin
2018-06-30 14:14:52 -04:00
parent d509637623
commit c5d575b9b6
6 changed files with 123 additions and 92 deletions

View File

@@ -180,6 +180,10 @@ export class WebPlatformUtilsService implements PlatformUtilsService {
return process.env.ENV === 'development';
}
isSelfHost(): boolean {
return process.env.SELF_HOST.toString() === 'true';
}
copyToClipboard(text: string, options?: any): void {
const doc = options ? options.doc : window.document;
if ((window as any).clipboardData && (window as any).clipboardData.setData) {