Avoid reporting errors when performFind has not been called

This commit is contained in:
SiriusXT 2025-05-09 10:00:12 +08:00
parent fc50252e97
commit 67e84d921f

View File

@ -83,7 +83,7 @@ export default class FindInHtml {
async findBoxClosed(totalFound: number, currentFound: number) {
const $content = await this.parent?.noteContext?.getContentElement();
if ($content) {
if (typeof $content?.unmark === 'function') {
$content.unmark();
}
}