This commit is contained in:
Vanessa 2024-12-03 14:01:51 +08:00
parent 1710194122
commit 07334bed6a
3 changed files with 10 additions and 8 deletions

View file

@ -1,5 +1,5 @@
export const searchMarkRender = (protyle: IProtyle, matchElements: NodeListOf<Element>) => {
if (matchElements.length === 0) {
if (matchElements.length === 0 || !CSS || !CSS.highlights) {
return;
}
protyle.highlight.markHL.clear();