Fix #59: Record Button is not working anymore #61

Merged
SaschaFuksa merged 1 commit from batch/59 into master 2026-04-21 18:14:35 +00:00
Owner
No description provided.
Fix #59: Guard null accesses for removed UI elements
Some checks failed
CI / lint (pull_request) Has been cancelled
CI / test (pull_request) Has been cancelled
697d1e7815
The batch/43 UI redesign removed the #error, #transcript, #apiUrl,
and #debugInfo HTML elements, but the JavaScript still referenced them
without null checks. This caused TypeError when startRecording() tried
to set error.textContent / debugInfo.textContent on null (since the
elements no longer exist), silently breaking the record button.

Fix: add null guards (if (el) el.textContent = ...) for all four
elements and rename to transcriptEl, errorEl, apiUrlInputEl, debugInfoEl.

Also fix _read_transcript_preview and _read_structured_preview to use
utf-8 encoding with errors=replace for robustness.
Tasch self-assigned this 2026-04-21 18:14:18 +00:00
SaschaFuksa deleted branch batch/59 2026-04-21 18:14:35 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Tasch/whisper-transcribe!61
No description provided.