mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-08 14:11:21 +00:00
GUAC-963: Properly initialize clipboardData.
This commit is contained in:
@@ -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
|
||||||
|
@@ -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
|
||||||
|
Reference in New Issue
Block a user