From 00a01b54b3d5d697cd407f225ce45b985f180769 Mon Sep 17 00:00:00 2001 From: purocean Date: Sat, 11 Jul 2026 23:55:14 +0800 Subject: [PATCH] style: fix text highlighter lint --- src/renderer/utils/index.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/renderer/utils/index.ts b/src/renderer/utils/index.ts index 7a96231b..fc765d1d 100644 --- a/src/renderer/utils/index.ts +++ b/src/renderer/utils/index.ts @@ -156,9 +156,9 @@ export function createTextHighlighter ( /** Highlight precomputed DOM ranges, such as ranges restored from review annotations. */ const highlightRanges = (ranges: Range[]) => { - const targetDocument = ranges[0]?.startContainer.ownerDocument - || resolveContainer()?.ownerDocument - || contextDocument + const targetDocument = ranges[0]?.startContainer.ownerDocument || + resolveContainer()?.ownerDocument || + contextDocument return applyRanges(ranges, targetDocument) }