GUAC-963: Only send clipboard data it's a string.

This commit is contained in:
Michael Jumper
2015-01-01 19:06:04 -08:00
parent 06828df960
commit 0caa3b0161

View File

@@ -333,10 +333,10 @@ angular.module('client').controller('clientController', ['$scope', '$routeParams
}); });
$scope.$watch('menuShown', function setKeyboardEnabled(menuShown, menuShownPreviousState) { $scope.$watch('menuShown', function menuVisibilityChanged(menuShown, menuShownPreviousState) {
// Send clipboard data if menu is hidden // Send clipboard data if menu is hidden
if (!menuShown && menuShownPreviousState) if (!menuShown && menuShownPreviousState && angular.isString($scope.client.clipboardData))
$scope.$broadcast('guacClipboard', 'text/plain', $scope.client.clipboardData); $scope.$broadcast('guacClipboard', 'text/plain', $scope.client.clipboardData);
// Disable client keyboard if the menu is shown // Disable client keyboard if the menu is shown