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:
Norbert Renner 2022-05-28 14:27:32 +02:00
parent 1d26949770
commit 0fc60c1821
5 changed files with 47 additions and 18 deletions

View file

@ -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'),
};
})();