mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-09-26 23:11:34 +08:00
Avoid reporting errors when performFind has not been called
This commit is contained in:
parent
fc50252e97
commit
67e84d921f
@ -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();
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user