GUAC-605: Fix clipboard handling.

This commit is contained in:
Michael Jumper
2014-11-16 16:43:39 -08:00
parent 4e67487077
commit 452ec41fbd
3 changed files with 7 additions and 14 deletions

View File

@@ -67,11 +67,6 @@ angular.module('client').factory('guacClientFactory', ['$rootScope',
// Connected
case 3:
$scope.$emit('guacClientStateChange', guacClient, "connected");
// Update server clipboard with current data
if ($scope.clipboard)
guacClient.setClipboard($scope.clipboard);
break;
// Disconnecting / disconnected are handled by tunnel instead
@@ -131,7 +126,7 @@ angular.module('client').factory('guacClientFactory', ['$rootScope',
// Emit event when done
reader.onend = function clipboard_text_end() {
$scope.$emit('guacClientClipboard', guacClient, data);
$scope.$emit('guacClientClipboard', guacClient, mimetype, data);
};
});