Korjattu illegal break: if(!task_id) break → if(task_id) { ... }
break ei ole sallittu if/else-lohkossa. Kääritty avatar-aktivointi if(data.task_id) -ehtoon. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -3325,7 +3325,7 @@ ${generatedFiles['Dockerfile'] || '(puuttuu)'}`;
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Avatar-aktivointi vain oikeille käyttäjäpyynnöille (task_id)
|
// Avatar-aktivointi vain oikeille käyttäjäpyynnöille (task_id)
|
||||||
if (!data.task_id) break;
|
if (data.task_id) {
|
||||||
document.querySelectorAll('.avatar-card').forEach(c => c.classList.remove('active'));
|
document.querySelectorAll('.avatar-card').forEach(c => c.classList.remove('active'));
|
||||||
const model = data.model || '';
|
const model = data.model || '';
|
||||||
const p = data.prompt ? data.prompt.toLowerCase() : '';
|
const p = data.prompt ? data.prompt.toLowerCase() : '';
|
||||||
@@ -3345,6 +3345,7 @@ ${generatedFiles['Dockerfile'] || '(puuttuu)'}`;
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
} catch(e) {}
|
} catch(e) {}
|
||||||
};
|
};
|
||||||
window._wsMessageHandler = _wsHandler;
|
window._wsMessageHandler = _wsHandler;
|
||||||
|
|||||||
Reference in New Issue
Block a user