mirror of
https://github.com/SomboChea/ui
synced 2026-01-18 09:06:14 +07:00
chore(#203): updated typescript to version 3.7 - beta
This commit is contained in:
committed by
GitHub
parent
302f4dbd89
commit
8c66dbc4d7
@@ -35,6 +35,7 @@ export function downloadFile(fileStream: Blob, fileName: string): void {
|
||||
let file: File;
|
||||
// File constructor is not supported by Edge
|
||||
// https://developer.mozilla.org/en-US/docs/Web/API/File#Browser_compatibility
|
||||
// @ts-ignore. Please see: https://github.com/microsoft/TypeScript/issues/33792
|
||||
if (navigator.msSaveBlob) {
|
||||
// Detect if Edge
|
||||
file = blobToFile(new Blob([fileStream], { type: 'application/octet-stream' }), fileName);
|
||||
|
||||
Reference in New Issue
Block a user