mirror of
https://github.com/bitwarden/browser
synced 2025-12-15 07:43:35 +00:00
SG-852 Removed msSaveOrOpenBlob (#4379)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user