copied value to clipboard message

This commit is contained in:
Kyle Spearrin 2019-02-27 11:26:35 -05:00
parent d4fab1c697
commit b9267c521d
1 changed files with 5 additions and 0 deletions

View File

@ -186,7 +186,12 @@ export class ElectronPlatformUtilsService implements PlatformUtilsService {
copyToClipboard(text: string, options?: any): void {
const type = options ? options.type : null;
const clearMs: number = options && options.clearMs ? options.clearMs : null;
clipboard.writeText(text, type);
this.messagingService.send('copiedToClipboard', {
clipboardValue: text,
clearMs: clearMs,
});
}
readFromClipboard(options?: any): Promise<string> {