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 d3d2bd2 commit 572f254Copy full SHA for 572f254
src/FileSaver.js
@@ -140,7 +140,7 @@ var saveAs = _global.saveAs || (
140
var isSafari = /constructor/i.test(_global.HTMLElement) || _global.safari
141
var isChromeIOS = /CriOS\/[\d]+/.test(navigator.userAgent)
142
143
- if (((isChromeIOS || (force && isSafari)) && typeof FileReader === 'object') || isWebKit && typeof FileReader === 'function') {
+ if ((isChromeIOS || isWebKit || (force && isSafari)) && typeof FileReader !== 'undefined') {
144
// Safari doesn't allow downloading of blob URLs
145
var reader = new FileReader()
146
reader.onloadend = function () {
0 commit comments