Skip to content
This repository was archived by the owner on Jun 24, 2025. It is now read-only.

Commit 67e84d9

Browse files
committed
Avoid reporting errors when performFind has not been called
1 parent fc50252 commit 67e84d9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/client/src/widgets/find_in_html.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ export default class FindInHtml {
8383

8484
async findBoxClosed(totalFound: number, currentFound: number) {
8585
const $content = await this.parent?.noteContext?.getContentElement();
86-
if ($content) {
86+
if (typeof $content?.unmark === 'function') {
8787
$content.unmark();
8888
}
8989
}

0 commit comments

Comments
 (0)