From 270588fdbcdbbfd9274531f3f61c4eeb3f8a1703 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Thu, 30 May 2019 09:37:06 -0400 Subject: [PATCH] dont call clearclipboard in a loop --- jslib | 2 +- src/app/app.component.ts | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/jslib b/jslib index cd46f64993..38fc0432c3 160000 --- a/jslib +++ b/jslib @@ -1 +1 @@ -Subproject commit cd46f64993545a1cb772e2f6a2137a675554f3c3 +Subproject commit 38fc0432c3b352628b0114ac98b49ca69ee01675 diff --git a/src/app/app.component.ts b/src/app/app.component.ts index 08722fa97b..2972b089d5 100644 --- a/src/app/app.component.ts +++ b/src/app/app.component.ts @@ -178,7 +178,9 @@ export class AppComponent implements OnInit { }); break; case 'copiedToClipboard': - this.systemService.clearClipboard(message.clipboardValue, message.clearMs); + if (!message.clearing) { + this.systemService.clearClipboard(message.clipboardValue, message.clearMs); + } break; default: }