fix(dashboard): PUT the handoff bundle through the app's API base #9
1 changed files with 3 additions and 1 deletions
|
|
@ -474,9 +474,11 @@ function App() {
|
|||
let interval;
|
||||
if ((status === 'processing' || status === 'completed') && jobId) {
|
||||
interval = setInterval(async () => {
|
||||
// Skip a backgrounded tab: with the dashboard open in several tabs the
|
||||
// hidden ones kept polling /api/status and flooding the access log.
|
||||
if (document.hidden) return;
|
||||
try {
|
||||
const data = await pollJob(jobId);
|
||||
console.log("Job status:", data);
|
||||
|
||||
// Update results if available (real-time)
|
||||
if (data.result) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue