🐛 search

This commit is contained in:
Vanessa 2024-12-29 10:58:40 +08:00
parent e81b861506
commit b3f55ac3b4

View File

@ -2,7 +2,7 @@ import {Constants} from "../../constants";
import {isInEmbedBlock} from "../util/hasClosest"; import {isInEmbedBlock} from "../util/hasClosest";
export const searchMarkRender = (protyle: IProtyle, keys: string[], hlId?: string | number, cb?: () => void) => { export const searchMarkRender = (protyle: IProtyle, keys: string[], hlId?: string | number, cb?: () => void) => {
if (!isSupportCSSHL()) { if (!isSupportCSSHL() || !keys || keys.length === 0) {
return; return;
} }
setTimeout(() => { setTimeout(() => {