1
0
mirror of https://github.com/bitwarden/browser synced 2026-01-06 10:33:57 +00:00

context menu options for cipher listing

This commit is contained in:
Kyle Spearrin
2018-02-16 13:59:46 -05:00
parent 6c0148bb96
commit 34b3890647
8 changed files with 146 additions and 12 deletions

View File

@@ -1,4 +1,8 @@
import { remote, shell } from 'electron';
import {
clipboard,
remote,
shell,
} from 'electron';
import { isDev } from '../scripts/utils';
@@ -149,4 +153,9 @@ export class DesktopPlatformUtilsService implements PlatformUtilsService {
isDev(): boolean {
return isDev();
}
copyToClipboard(text: string, options?: any): void {
const type = options ? options.type : null;
clipboard.writeText(text, type);
}
}