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: prevent duplicate PDF upload button on main page

LearningCircuit684b17ee42a7
diff --git a/src/local_deep_research/web/static/js/pdf_upload_handler.js b/src/local_deep_research/web/static/js/pdf_upload_handler.js
index bdd4091364..eb938f57d2 100644
--- a/src/local_deep_research/web/static/js/pdf_upload_handler.js
+++ b/src/local_deep_research/web/static/js/pdf_upload_handler.js
@@ -570,17 +570,7 @@ function initializePDFUploadHandler() {
return;
}
- // Try to initialize immediately
window.pdfUploadHandler = new PDFUploadHandler();
-
- // If textarea not found, try again after delay
- if (!window.pdfUploadHandler.queryTextarea) {
- console.log('PDF Upload Handler: Textarea not found, retrying...');
- setTimeout(() => {
- console.log('PDF Upload Handler: Retrying initialization...');
- window.pdfUploadHandler = new PDFUploadHandler();
- }, 500);
- }
}
if (document.readyState === 'loading') {