change download file name

This commit is contained in:
Mohamed Nouffer
2021-11-16 10:50:41 +05:30
parent 86f86195eb
commit 4f417f4a8a
9 changed files with 13 additions and 13 deletions

View File

@ -115,7 +115,7 @@ function Index() {
}
function downloadReport(url) {
fetch("url of api")
fetch(url)
.then(async response => {
const filename = response.headers
.get("content-disposition")