mirror of
https://github.com/bitwarden/browser.git
synced 2025-01-22 21:21:35 +01:00
copied value to clipboard message
This commit is contained in:
parent
d4fab1c697
commit
b9267c521d
@ -186,7 +186,12 @@ export class ElectronPlatformUtilsService implements PlatformUtilsService {
|
|||||||
|
|
||||||
copyToClipboard(text: string, options?: any): void {
|
copyToClipboard(text: string, options?: any): void {
|
||||||
const type = options ? options.type : null;
|
const type = options ? options.type : null;
|
||||||
|
const clearMs: number = options && options.clearMs ? options.clearMs : null;
|
||||||
clipboard.writeText(text, type);
|
clipboard.writeText(text, type);
|
||||||
|
this.messagingService.send('copiedToClipboard', {
|
||||||
|
clipboardValue: text,
|
||||||
|
clearMs: clearMs,
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
readFromClipboard(options?: any): Promise<string> {
|
readFromClipboard(options?: any): Promise<string> {
|
||||||
|
Loading…
Reference in New Issue
Block a user