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;
} catch (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' });
try {
const msg = extractText(responseText)
const msg = extractText(responseText);
marked.setOptions({
breaks: true,