mirror of
https://github.com/bunkerity/bunkerized-nginx
synced 2023-12-13 21:30:18 +01:00
Changed the way jobs' cache files are downloaded
This commit is contained in:
parent
fa54ebd491
commit
0db1550f2f
1 changed files with 2 additions and 10 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue