fix(mail(js)): add missing library to save msg from popup window

Fixes #4879
This commit is contained in:
Francis Lachapelle committed 2019-11-18 11:57:53 -05:00
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);
}
});
};