mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 05:07:41 +00:00
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:
@@ -615,7 +615,7 @@ angular.module('clipboard').factory('clipboardService', ['$injector',
|
|||||||
* components like the "guacClient" directive.
|
* components like the "guacClient" directive.
|
||||||
*/
|
*/
|
||||||
service.resyncClipboard = function resyncClipboard() {
|
service.resyncClipboard = function resyncClipboard() {
|
||||||
service.getClipboard().then(function clipboardRead(data) {
|
getLocalClipboard().then(function clipboardRead(data) {
|
||||||
return service.setClipboard(data);
|
return service.setClipboard(data);
|
||||||
}, angular.noop);
|
}, angular.noop);
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user