diff --git a/src/electron/services/electronPlatformUtils.service.ts b/src/electron/services/electronPlatformUtils.service.ts index ac660afc65..b2b01750e0 100644 --- a/src/electron/services/electronPlatformUtils.service.ts +++ b/src/electron/services/electronPlatformUtils.service.ts @@ -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 {