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 {
|
||||
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> {
|
||||
|
|
Loading…
Reference in New Issue