mirror of
https://github.com/jackyzha0/quartz.git
synced 2025-12-19 19:04:06 -06:00
fix: code formating issue
This commit is contained in:
parent
ca892e24d3
commit
8010968363
@ -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)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user