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 f74718a commit c71508bCopy full SHA for c71508b
FileSaver.js
@@ -14,12 +14,14 @@
14
15
var saveAs = saveAs
16
// IE 10+ (native saveAs)
17
- || (navigator.msSaveOrOpenBlob && navigator.msSaveOrOpenBlob.bind(navigator))
+ || (typeof navigator !== "undefined" &&
18
+ navigator.msSaveOrOpenBlob && navigator.msSaveOrOpenBlob.bind(navigator))
19
// Everyone else
20
|| (function(view) {
21
"use strict";
22
// IE <10 is explicitly unsupported
- if (/MSIE [1-9]\./.test(navigator.userAgent)) {
23
+ if (typeof navigator !== "undefined" &&
24
+ /MSIE [1-9]\./.test(navigator.userAgent)) {
25
return;
26
}
27
var
0 commit comments