web/lib/download: allow opening file object url on ios

sharing a big file crashes ios safari, but opening it works perfectly fine. will revert if this causes even more issues than before
This commit is contained in:
wukko 2025-05-19 17:39:51 +06:00
parent 5e1e083ff3
commit 566194d8a6
No known key found for this signature in database
GPG Key ID: 3E30B3F26C7B4AA2

View File

@ -108,7 +108,7 @@ export const downloadFile = ({ url, file, urlType }: DownloadFileParams) => {
if (file) {
if (pref === "share" && device.supports.share) {
return shareFile(file);
} else if (pref === "download" && device.supports.directDownload) {
} else if (pref === "download") {
return openFile(file);
}
}