We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 592034a commit 05df3e0Copy full SHA for 05df3e0
FileSaver.js
@@ -14,9 +14,15 @@
14
/*! @source http://purl.eligrey.com/github/FileSaver.js/blob/master/FileSaver.js */
15
16
var saveAs = saveAs
17
- || (typeof navigator !== "undefined" && navigator.msSaveOrOpenBlob && navigator.msSaveOrOpenBlob.bind(navigator))
+ // IE 10+ (native saveAs)
18
+ || (navigator.msSaveOrOpenBlob && navigator.msSaveOrOpenBlob.bind(navigator))
19
+ // Everyone else
20
|| (function(view) {
21
"use strict";
22
+ // IE <10 is explicitly unsupported
23
+ if (/MSIE [1-9]\./.test(navigator.userAgent)) {
24
+ return;
25
+ }
26
var
27
doc = view.document
28
// only get URL when necessary in case BlobBuilder.js hasn't overridden it yet
0 commit comments