mirror of
https://github.com/wukko/cobalt.git
synced 2025-05-28 12:30:12 +02:00
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:
parent
5e1e083ff3
commit
566194d8a6
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user