diff --git a/guacamole/src/main/frontend/src/app/client/types/ManagedClient.js b/guacamole/src/main/frontend/src/app/client/types/ManagedClient.js index 2be59f32a..22d1690e2 100644 --- a/guacamole/src/main/frontend/src/app/client/types/ManagedClient.js +++ b/guacamole/src/main/frontend/src/app/client/types/ManagedClient.js @@ -591,7 +591,7 @@ angular.module('client').factory('ManagedClient', ['$rootScope', '$injector', // Handle any received filesystem objects client.onfilesystem = function fileSystemReceived(object, name) { $rootScope.$apply(function exposeFilesystem() { - managedClient.filesystems.push(ManagedFilesystem.getInstance(object, name)); + managedClient.filesystems.push(ManagedFilesystem.getInstance(managedClient, object, name)); }); }; diff --git a/guacamole/src/main/frontend/src/app/client/types/ManagedFilesystem.js b/guacamole/src/main/frontend/src/app/client/types/ManagedFilesystem.js index 3a2a89ba7..a81fcb168 100644 --- a/guacamole/src/main/frontend/src/app/client/types/ManagedFilesystem.js +++ b/guacamole/src/main/frontend/src/app/client/types/ManagedFilesystem.js @@ -170,6 +170,10 @@ angular.module('client').factory('ManagedFilesystem', ['$rootScope', '$injector' * and human-readable name. Upon creation, a request to populate the * contents of the root directory will be automatically dispatched. * + * @param {ManagedClient} client + * The client that originally received the "filesystem" instruction + * that resulted in the creation of this ManagedFilesystem. + * * @param {Guacamole.Object} object * The Guacamole.Object defining the filesystem. *