mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 13:17:41 +00:00
GUACAMOLE-44: ManagedFileUpload.getInstance() must not directly invoke $apply() - it can result in an infinite $digest loop.
This commit is contained in:
@@ -139,7 +139,7 @@ angular.module('client').factory('ManagedFileUpload', ['$rootScope', '$injector'
|
||||
stream = object.createOutputStream(file.type, streamName);
|
||||
|
||||
// Notify that the file transfer is pending
|
||||
$rootScope.$apply(function uploadStreamOpen() {
|
||||
$rootScope.$evalAsync(function uploadStreamOpen() {
|
||||
|
||||
// Init managed upload
|
||||
managedFileUpload.filename = file.name;
|
||||
|
Reference in New Issue
Block a user