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: use correct ldr- CSS class prefixes in ui.js

LearningCircuit298172915662
diff --git a/src/local_deep_research/web/static/js/services/ui.js b/src/local_deep_research/web/static/js/services/ui.js
index 0a8d3b7565..0e79d70d1e 100644
--- a/src/local_deep_research/web/static/js/services/ui.js
+++ b/src/local_deep_research/web/static/js/services/ui.js
@@ -26,9 +26,9 @@ function updateProgressBar(fillElementId, percentageElementId, percentage) {
// Add classes for visual feedback
if (safePercentage >= 100) {
- progressFill.classList.add('complete');
+ progressFill.classList.add('ldr-complete');
} else {
- progressFill.classList.remove('complete');
+ progressFill.classList.remove('ldr-complete');
}
}
}
@@ -64,7 +64,7 @@ function hideSpinner(container) {
const containerEl = typeof container === 'string' ? document.getElementById(container) : container;
if (containerEl) {
- const spinner = containerEl.querySelector('.loading-spinner');
+ const spinner = containerEl.querySelector('.ldr-loading-spinner');
if (spinner) {
spinner.remove();
}
@@ -266,7 +266,12 @@ function createDynamicFavicon(emoji = '⚡') {
}
// Set the new favicon
- link.href = dataUrl;
+ // Data URLs from canvas are safe for favicon use
+ if (typeof URLValidator !== 'undefined' && URLValidator.safeAssign) {
+ URLValidator.safeAssign(link, 'href', dataUrl);
+ } else {
+ link.href = dataUrl;
+ }
}
/**
@@ -368,8 +373,8 @@ function showAlert(message, type = 'info', skipIfToastShown = true) {
// Add a close button
const closeBtn = document.createElement('span');
- closeBtn.className = 'alert-close';
- closeBtn.textContent = '×'; // Use textContent instead of innerHTML
+ closeBtn.className = 'ldr-alert-close';
+ closeBtn.textContent = '×'; // Use textContent instead of innerHTML for security
closeBtn.addEventListener('click', () => {
alert.remove();
alertContainer.style.display = 'none';