mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-09-27 23:41:31 +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) {
|
async findBoxClosed(totalFound: number, currentFound: number) {
|
||||||
const $content = await this.parent?.noteContext?.getContentElement();
|
const $content = await this.parent?.noteContext?.getContentElement();
|
||||||
if ($content) {
|
if (typeof $content?.unmark === 'function') {
|
||||||
$content.unmark();
|
$content.unmark();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user