mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-07 13:41:21 +00:00
Refactor InputStream API.
This commit is contained in:
@@ -815,7 +815,9 @@ GuacUI.Client.attach = function(guac) {
|
||||
|
||||
}
|
||||
|
||||
guac.onfile = function(filename, stream) {
|
||||
guac.onfile = function(mimetype, filename) {
|
||||
|
||||
var stream = new Guacamole.BlobInputStream(mimetype);
|
||||
|
||||
var download = new GuacUI.Download(filename);
|
||||
download.updateProgress(getSizeString(0));
|
||||
@@ -843,6 +845,8 @@ GuacUI.Client.attach = function(guac) {
|
||||
GuacUI.Client.notification_area.removeChild(download.getElement());
|
||||
};
|
||||
|
||||
return stream;
|
||||
|
||||
};
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user