Use Blob.js and FileSaver.js for providing file downloads across platforms lacking blob and HTML5 download links.

This commit is contained in:
Michael Jumper committed 2013-07-01 15:01:13 -07:00
1 parent 984ab06100
commit 1391f628a8
8 files changed
+478 -22

No files matched your search

@@ -804,8 +804,13 @@ GuacUI.Client.attach = function(guac) {
// When complete, prompt for download
blob.oncomplete = function() {
var url = window.URL || window.webkitURL;
download.complete(blob.mimetype, url.createObjectURL(blob.getBlob()));
download.ondownload = function() {
saveAs(blob.getBlob(), blob.name);
};
download.complete();
};
// When close clicked, remove from notification area