Work around iOS 3rd party browser download (#418)
- use FileReader.readAsDataURL (for iOS Chromium) - add alternative Download from Server for now until proven in Prod and fixed in iOS Firefox (no i18n) - replace cloud icons as client-side now
This commit is contained in:
parent
1d26949770
commit
0fc60c1821
5 changed files with 47 additions and 18 deletions
|
|
@ -22,6 +22,10 @@
|
|||
touchScreen: touchScreen,
|
||||
touchScreenDetectable: touchScreenDetectable,
|
||||
touch: touch,
|
||||
download: 'Blob' in window && 'createObjectURL' in URL && 'download' in document.createElement('a'),
|
||||
download:
|
||||
'Blob' in window &&
|
||||
'FileReader' in window &&
|
||||
'readAsDataURL' in FileReader.prototype &&
|
||||
'download' in document.createElement('a'),
|
||||
};
|
||||
})();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue