SG-852 Removed msSaveOrOpenBlob (#4379)

This commit is contained in:
Carlos Gonçalves 2023-01-13 15:40:47 +00:00 committed by GitHub
parent 8121894b44
commit 6bb55c7320
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 10 deletions

View File

@ -29,16 +29,12 @@ export class BrowserFileDownloadService implements FileDownloadService {
true
);
} else {
if ((navigator as any).msSaveOrOpenBlob) {
(navigator as any).msSaveBlob(builder.blob, request.fileName);
} else {
const a = window.document.createElement("a");
a.href = URL.createObjectURL(builder.blob);
a.download = request.fileName;
window.document.body.appendChild(a);
a.click();
window.document.body.removeChild(a);
}
const a = window.document.createElement("a");
a.href = URL.createObjectURL(builder.blob);
a.download = request.fileName;
window.document.body.appendChild(a);
a.click();
window.document.body.removeChild(a);
}
}
}