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.
This commit is contained in:
Michael Jumper
2022-01-25 11:50:51 -08:00
parent 6b24394c9b
commit cc8b3f734c

View File

@@ -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);
};