mirror of
https://github.com/bitwarden/web
synced 2025-12-14 23:33:16 +00:00
only use blob options if available and not IE
This commit is contained in:
@@ -85,7 +85,12 @@ export class WebPlatformUtilsService implements PlatformUtilsService {
|
||||
}
|
||||
|
||||
saveFile(win: Window, blobData: any, blobOptions: any, fileName: string): void {
|
||||
const blob = new Blob([blobData], blobOptions);
|
||||
let blob: Blob = null;
|
||||
if (blobOptions != null && !this.isIE()) {
|
||||
blob = new Blob([blobData], blobOptions);
|
||||
} else {
|
||||
blob = new Blob([blobData]);
|
||||
}
|
||||
if (navigator.msSaveOrOpenBlob) {
|
||||
navigator.msSaveBlob(blob, fileName);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user