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 event listeners in settings.js (#3180)

LearningCircuit0bde3fd4cf0f
diff --git a/src/local_deep_research/web/static/js/components/settings.js b/src/local_deep_research/web/static/js/components/settings.js
index 2823bf4f76..c581c3dd74 100644
--- a/src/local_deep_research/web/static/js/components/settings.js
+++ b/src/local_deep_research/web/static/js/components/settings.js
@@ -725,6 +725,8 @@
function initExpandedJsonControls() {
// Find all JSON property controls
document.querySelectorAll('.ldr-json-property-control').forEach(control => {
+ if (control.hasAttribute('data-json-expanded-initialized')) return;
+ control.setAttribute('data-json-expanded-initialized', 'true');
// When the control changes, update the hidden JSON field
control.addEventListener('change', function() {
updateJsonFromControls(this);
@@ -4133,10 +4135,8 @@
});
}
- // --- MODIFICATION START: Call initAutoSaveHandlers at the end of initializeSettings ---
- // Initialize auto-save handlers after all other setup
- initAutoSaveHandlers();
- // --- MODIFICATION END ---
+ // Auto-save handlers are initialized inside loadSettings() success callback
+ // via setTimeout, after settingsContent is populated. No call needed here.
}
// Initialize on DOM content loaded