mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-10-18 17:58:12 +00:00
fix(mail(js)): add missing library to save msg from popup window
Fixes #4879
This commit is contained in:
1 parent
e458a78a10
commit
729802222f
2 files changed
+6
-7
No files matched your search
@@ -191,6 +191,10 @@
|
||||
if (action) path.push(action);
|
||||
path = _.compact(_.flatten(path)).join('/');
|
||||
|
||||
if (typeof saveAs == 'undefined') {
|
||||
throw new Error('To use Resource.download, FileSaver.js must be loaded.');
|
||||
}
|
||||
|
||||
function getFileNameFromHeader(header) {
|
||||
var result;
|
||||
|
||||
@@ -224,12 +228,7 @@
|
||||
else {
|
||||
getFileNameFromHeader(headers('content-disposition'));
|
||||
}
|
||||
if (!saveAs) {
|
||||
throw new Error('To use Resource.download, FileSaver.js must be loaded.');
|
||||
}
|
||||
else {
|
||||
saveAs(blob, fileName);
|
||||
}
|
||||
saveAs(blob, fileName);
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user