Lint
This commit is contained in:
parent
19caf3cddf
commit
df05cf2345
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue