More code suggestion fixes

This commit is contained in:
Eyal Sharon
2025-06-24 13:02:12 +03:00
parent 35e865bfb6
commit 5062543325

View File

@ -213,7 +213,7 @@ window.addEventListener('load', function() {
return msg; return msg;
} catch (error) { } catch (error) {
console.error('Error parsing results:', error); console.error('Error parsing results:', error);
throw "Error processing results"; throw new Error("Error processing results");
} }
} }
@ -229,7 +229,7 @@ window.addEventListener('load', function() {
searchContainer.scrollIntoView({ behavior: 'smooth', block: 'start' }); searchContainer.scrollIntoView({ behavior: 'smooth', block: 'start' });
try { try {
const msg = extractText(responseText) const msg = extractText(responseText);
marked.setOptions({ marked.setOptions({
breaks: true, breaks: true,