mirror of
https://github.com/mudler/LocalAI.git
synced 2026-02-03 03:02:38 -05:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user