From c6b9452632fedf75f536c25b0849753262eb0c46 Mon Sep 17 00:00:00 2001 From: Travis Clarke Date: Thu, 27 Apr 2017 21:50:35 -0700 Subject: [PATCH] Update tableexport.js --- src/stable/js/tableexport.js | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/stable/js/tableexport.js b/src/stable/js/tableexport.js index d3d754e..5b6bd07 100644 --- a/src/stable/js/tableexport.js +++ b/src/stable/js/tableexport.js @@ -503,12 +503,9 @@ data = this.string2ArrayBuffer(wbout); } var blob = new Blob([data], {type: mime + ";" + this.charset}); - if (navigator.appVersion.toString().indexOf('.NET') > 0) - { + if (navigator.appVersion.toString().indexOf('.NET') > 0) { window.navigator.msSaveOrOpenBlob(blob, name + extension); - } - else - { + } else { saveAs(blob, name + extension, true); } }, @@ -555,4 +552,4 @@ return exports.default = exports.TableExport = TableExport; } -)); \ No newline at end of file +));