Fix iOS Safari iCloud

This commit is contained in:
Will Scullin 2022-06-13 19:58:21 -07:00
parent cc025447dc
commit f3f470ffc1
No known key found for this signature in database
GPG Key ID: 26DCD1042C6638CD

View File

@ -60,10 +60,13 @@ const InputFileChooser = ({
//
// which allows pretty generous interpretations.
//
// Update(whscullin) - Adding the MIME type seems to block loading anything
// from iCloud when using Safari, so reverting to simply using extensions for
// now.
const newAccept = [];
for (const type of accept) {
for (const [typeString, suffixes] of Object.entries(type.accept)) {
newAccept.push(typeString);
for (const [/* typeString */, suffixes] of Object.entries(type.accept)) {
// newAccept.push(typeString);
if (Array.isArray(suffixes)) {
newAccept.push(...suffixes);
} else {