From 3666ee5a878284a41608c352c20c7959cee99136 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Tue, 12 Jun 2018 14:35:44 -0400 Subject: [PATCH] only use blob options if available and not IE --- src/services/webPlatformUtils.service.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/services/webPlatformUtils.service.ts b/src/services/webPlatformUtils.service.ts index 1606004cb3..d128758968 100644 --- a/src/services/webPlatformUtils.service.ts +++ b/src/services/webPlatformUtils.service.ts @@ -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 {