mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-26 12:25:20 +01:00
SG-852 Removed msSaveOrOpenBlob (#4379)
This commit is contained in:
parent
8121894b44
commit
6bb55c7320
@ -28,9 +28,6 @@ export class BrowserFileDownloadService implements FileDownloadService {
|
|||||||
}),
|
}),
|
||||||
true
|
true
|
||||||
);
|
);
|
||||||
} else {
|
|
||||||
if ((navigator as any).msSaveOrOpenBlob) {
|
|
||||||
(navigator as any).msSaveBlob(builder.blob, request.fileName);
|
|
||||||
} else {
|
} else {
|
||||||
const a = window.document.createElement("a");
|
const a = window.document.createElement("a");
|
||||||
a.href = URL.createObjectURL(builder.blob);
|
a.href = URL.createObjectURL(builder.blob);
|
||||||
@ -40,5 +37,4 @@ export class BrowserFileDownloadService implements FileDownloadService {
|
|||||||
window.document.body.removeChild(a);
|
window.document.body.removeChild(a);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user