mirror of
https://github.com/zadam/trilium.git
synced 2025-11-01 10:55:55 +01:00
Avoid reporting errors when performFind has not been called
This commit is contained in:
@@ -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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user