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 63f89d4 commit ef70f92Copy full SHA for ef70f92
src/libs/FileSaver.js
@@ -89,8 +89,8 @@ var saveAs =
89
? function saveAs() {
90
/* noop */
91
}
92
- : // Use download attribute first if possible (#193 Lumia mobile)
93
- "download" in HTMLAnchorElement.prototype
+ : // Use download attribute first if possible (#193 Lumia mobile) unless this is a native app
+ (typeof HTMLAnchorElement !== "undefined" && "download" in HTMLAnchorElement.prototype)
94
? function saveAs(blob, name, opts) {
95
var URL = _global.URL || _global.webkitURL;
96
var a = document.createElement("a");
0 commit comments