Skip to content

~95% on SimpleQA (e.g. Qwen3.6-27B on a 3090). Supports all local and cloud LLMs (llama.cpp, Ollama, Google, ...). 10+ search engines - arXiv, PubMed, your private documents. Everything Local & Encrypted.

fix: load safe-logger.js in <head> before Vite app.js to prevent undefined error (#3408)

LearningCircuitd0927f2ab7a9
diff --git a/src/local_deep_research/web/templates/base.html b/src/local_deep_research/web/templates/base.html
index ed665fe15b..d11c1ea002 100644
--- a/src/local_deep_research/web/templates/base.html
+++ b/src/local_deep_research/web/templates/base.html
@@ -35,6 +35,8 @@
<!-- Vite HMR for development -->
{{ vite_hmr() }}
+ <!-- SafeLogger must load before app.js which uses it at init -->
+ <script src="/static/js/security/safe-logger.js"></script>
<!-- Load all vendor dependencies and styles through Vite -->
{{ vite_asset('js/app.js') }}
@@ -130,9 +132,6 @@
<!-- Scripts -->
- <!-- Safe Logger (must load first — theme.js, keyboard.js, help.js call SafeLogger at exec time) -->
- <script defer src="/static/js/security/safe-logger.js"></script>
-
<!-- Backend constants injected from Python (single source of truth) -->
<!-- Source: src/local_deep_research/constants.py::ResearchStatus -->
<!-- Injected by: src/local_deep_research/web/app_factory.py (inject_frontend_constants) -->