Ensure Chrome iOS still works

This commit is contained in:
Rajiv Shah
2020-01-30 19:00:37 -05:00
parent d3d2bd20d6
commit 572f254834
+1 -1
View File
@@ -140,7 +140,7 @@ var saveAs = _global.saveAs || (
var isSafari = /constructor/i.test(_global.HTMLElement) || _global.safari
var isChromeIOS = /CriOS\/[\d]+/.test(navigator.userAgent)
if (((isChromeIOS || (force && isSafari)) && typeof FileReader === 'object') || isWebKit && typeof FileReader === 'function') {
if ((isChromeIOS || isWebKit || (force && isSafari)) && typeof FileReader !== 'undefined') {
// Safari doesn't allow downloading of blob URLs
var reader = new FileReader()
reader.onloadend = function () {