GUAC-963: Properly initialize clipboardData.

This commit is contained in:
Michael Jumper
2015-01-02 20:39:21 -08:00
parent bce2270952
commit 30002b2160
2 changed files with 2 additions and 2 deletions

View File

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