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

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