fix download

This commit is contained in:
supositware 2021-09-13 17:12:43 +02:00
parent 2261105368
commit 3aeba06f8b

View file

@ -115,7 +115,9 @@ class DownloadCommand extends Command {
const params = new URLSearchParams();
params.append('url', args.link.href);
params.append('proxy', proxy[args.proxy].ip);
if (proxy[args.proxy] !== undefined) {
params.append('proxy', proxy[args.proxy].ip);
}
fetch(`${Hapi}/download`, {method: 'POST', body: params})
.then(async res => {