fix(ui): Stimmenliste im Playground beim Öffnen laden (#1112)

Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GmHhg5YdSXUmKzjHCaEWQp
This commit is contained in:
2026-11-18 10:30:24 +01:00
parent f9bf8ca34a
commit 3eb544d380
2 changed files with 4 additions and 1 deletions

View File

@ -465,6 +465,8 @@ const CHAT_JS: &str = r#"(function () {
.catch(function () { stimme.textContent = ""; var f = document.createElement("option"); f.value = ""; f.textContent = "Stimmen nicht abrufbar"; stimme.appendChild(f); });
}
if (sprache) { sprache.addEventListener("change", stimmenLaden); }
// Beim Öffnen ist das Sprachmodell oft schon vorausgewählt, dann löst nur „change“ nichts aus: einmal laden.
stimmenLaden();
var live = document.getElementById("chat-live");
var vorlesenStopp = document.getElementById("chat-vorlesen-stopp");