mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 13:17:41 +00:00
GUAC-605: Fix clipboard handling.
This commit is contained in:
@@ -55,8 +55,6 @@ angular.module('client').directive('guacClient', [function guacClient() {
|
||||
}
|
||||
};
|
||||
|
||||
$scope.clipboard = "";
|
||||
|
||||
/**
|
||||
* Whether the local, hardware mouse cursor is in use.
|
||||
*
|
||||
@@ -290,7 +288,7 @@ angular.module('client').directive('guacClient', [function guacClient() {
|
||||
*/
|
||||
|
||||
// Update active client if clipboard changes
|
||||
$scope.$watch('clipboard', function clipboardChange(data) {
|
||||
$scope.$on('guacClipboard', function onClipboard(event, mimetype, data) {
|
||||
if (client)
|
||||
client.setClipboard(data);
|
||||
});
|
||||
|
Reference in New Issue
Block a user