fix: code formating issue

This commit is contained in:
neerajadhav 2025-07-08 18:25:23 +05:30
parent ca892e24d3
commit 8010968363

View File

@ -82,7 +82,7 @@ export function highlightElement(
color: string = "var(--highlight, #ffeb3b40)", color: string = "var(--highlight, #ffeb3b40)",
) { ) {
// Clear any existing highlight on this element // Clear any existing highlight on this element
const existingHighlight = Array.from(activeHighlights).find(h => h.element === el) const existingHighlight = Array.from(activeHighlights).find((h) => h.element === el)
if (existingHighlight) { if (existingHighlight) {
clearTimeout(existingHighlight.timeoutId) clearTimeout(existingHighlight.timeoutId)
activeHighlights.delete(existingHighlight) activeHighlights.delete(existingHighlight)