Remove msSaveBlob fallback for IE
This commit is contained in:
@@ -139,14 +139,9 @@ function download(fullpath, filename) {
|
||||
return response.blob();
|
||||
})
|
||||
.then(function (blob) {
|
||||
if (navigator.msSaveBlob) {
|
||||
// link download attribute does not work on MS browsers
|
||||
navigator.msSaveBlob(blob, filename);
|
||||
} else {
|
||||
link.href = URL.createObjectURL(blob);
|
||||
link.download = filename;
|
||||
link.click();
|
||||
}
|
||||
link.href = URL.createObjectURL(blob);
|
||||
link.download = filename;
|
||||
link.click();
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user