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) { $scope.$watch('menuShown', function menuVisibilityChanged(menuShown, menuShownPreviousState) {
// Send clipboard data if menu is hidden // 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); $scope.$broadcast('guacClipboard', 'text/plain', $scope.client.clipboardData);
// Disable client keyboard if the menu is shown // Disable client keyboard if the menu is shown

View File

@@ -99,7 +99,7 @@ angular.module('client').factory('ManagedClient', ['$rootScope', '$injector',
* *
* @type String * @type String
*/ */
this.clipboardData = template.clipboardData; this.clipboardData = template.clipboardData || '';
/** /**
* All downloaded files. As files are downloaded, their progress can be * All downloaded files. As files are downloaded, their progress can be