1
0
Fork 0
mirror of synced 2024-10-03 10:36:59 +13:00
This commit is contained in:
Adria Navarro 2024-03-25 10:24:20 +01:00
parent 19caf3cddf
commit df05cf2345

View file

@ -46,8 +46,7 @@ export async function downloadFile(url, body) {
if (!response.ok) {
return false
}
} else {
const contentDisposition = response.headers.get("Content-Disposition")
const matches = /filename[^;=\n]*=((['"]).*?\2|[^;\n]*)/.exec(
@ -66,3 +65,4 @@ export async function downloadFile(url, body) {
URL.revokeObjectURL(url)
return true
}
}