From cc8b3f734c06e601e0e004c8b565ecbcf63736bc Mon Sep 17 00:00:00 2001 From: Michael Jumper Date: Tue, 25 Jan 2022 11:50:51 -0800 Subject: [PATCH] GUACAMOLE-1523: Resync ONLY local clipboard to internal clipboard. The clipboard service previously and incorrectly resynced the internal clipboard with itself. This had the effect of forcing a resync of the internal clipboard contents to the external, local clipboard, clearing that clipboard of whatever was copied before. --- .../frontend/src/app/clipboard/services/clipboardService.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/guacamole/src/main/frontend/src/app/clipboard/services/clipboardService.js b/guacamole/src/main/frontend/src/app/clipboard/services/clipboardService.js index 8e8c95b71..4ec9d04b8 100644 --- a/guacamole/src/main/frontend/src/app/clipboard/services/clipboardService.js +++ b/guacamole/src/main/frontend/src/app/clipboard/services/clipboardService.js @@ -615,7 +615,7 @@ angular.module('clipboard').factory('clipboardService', ['$injector', * components like the "guacClient" directive. */ service.resyncClipboard = function resyncClipboard() { - service.getClipboard().then(function clipboardRead(data) { + getLocalClipboard().then(function clipboardRead(data) { return service.setClipboard(data); }, angular.noop); };