VeryOnly123 commited on
Commit
ed89bb7
·
1 Parent(s): 0a0a748
Files changed (1) hide show
  1. static/solver.html +2 -1
static/solver.html CHANGED
@@ -429,7 +429,8 @@
429
  } else {
430
  body.innerHTML = `<div class="task-files" style="margin-bottom:12px;">${progressHtml}</div>${logHtml}<p style="color:#888;">Result file not found. <a href="/api/download/${taskId}">Download workspace</a> instead.</p>`;
431
  }
432
- downloadBtn.href = `/api/download/${taskId}${token ? '?token=' + encodeURIComponent(token) : ''}`;
 
433
  downloadBtn.style.display = 'inline-block';
434
  } else if (t.status === 'error') {
435
  const logResp = await api('/api/logs/' + taskId + '?lines=100');
 
429
  } else {
430
  body.innerHTML = `<div class="task-files" style="margin-bottom:12px;">${progressHtml}</div>${logHtml}<p style="color:#888;">Result file not found. <a href="/api/download/${taskId}">Download workspace</a> instead.</p>`;
431
  }
432
+ const tkn = getToken();
433
+ downloadBtn.href = `/api/download/${taskId}`;
434
  downloadBtn.style.display = 'inline-block';
435
  } else if (t.status === 'error') {
436
  const logResp = await api('/api/logs/' + taskId + '?lines=100');