Changed the way jobs' cache files are downloaded

This commit is contained in:
TheophileDiot 2022-12-03 16:02:02 +01:00
parent fa54ebd491
commit 0db1550f2f
1 changed files with 2 additions and 10 deletions

View File

@ -320,17 +320,9 @@ class Download {
}
async sendFileToDL(jobName, fileName) {
const response = await fetch(
`${location.href}/jobs/download?job_name=${jobName}&file_name=${fileName}`
window.open(
`${location.href}/download?job_name=${jobName}&file_name=${fileName}`
);
if (response.status === 200) {
const res = await response.json();
//last update
return;
} else {
}
return null;
}
}