Fix: Remove talk.js from SPA to prevent null element errors

The talk.js script has global-scope DOM access (getElementById at top level)
that causes "recordButton is null" errors when loaded in the SPA context.
The SPA talk view has its own inline JavaScript that handles recording
functionality with properly namespaced element IDs (spa-recordButton, etc.).

Co-authored-by: mudler <2420543+mudler@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2026-01-11 08:10:21 +00:00
parent 4758996936
commit 8da5ef7231

View File

@@ -359,7 +359,8 @@
<script defer src="static/chat.js"></script>
<script defer src="static/image.js"></script>
<script defer src="static/tts.js"></script>
<script defer src="static/talk.js"></script>
<!-- Note: talk.js is NOT included here because it has global-scope DOM access that
conflicts with the SPA architecture. The SPA talk view has its own inline JS. -->
<script src="static/assets/pdf.min.js"></script>
<script>
// Initialize PDF.js worker