From 6bb55c73207c19673b9f5e271759eb9ad8ed3ef7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20Gon=C3=A7alves?= Date: Fri, 13 Jan 2023 15:40:47 +0000 Subject: [PATCH] SG-852 Removed msSaveOrOpenBlob (#4379) --- .../src/services/browserFileDownloadService.ts | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/apps/browser/src/services/browserFileDownloadService.ts b/apps/browser/src/services/browserFileDownloadService.ts index 273df1e22d3..89ae6722b59 100644 --- a/apps/browser/src/services/browserFileDownloadService.ts +++ b/apps/browser/src/services/browserFileDownloadService.ts @@ -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); } } }